Re: bug with psql 8.3.3 on ubuntu - Mailing list pgsql-bugs

From toruvinn
Subject Re: bug with psql 8.3.3 on ubuntu
Date
Msg-id op.ujk1wlpa33x80h@insanity.lain.pl
Whole thread Raw
In response to bug with psql 8.3.3 on ubuntu  (Viraj Kanwade <virajk@gslab.com>)
List pgsql-bugs
On Thu, 23 Oct 2008 18:46:34 +0200, Viraj Kanwade <virajk@gslab.com> wrote:
> psql -d mydb -U usr -t -c " select val1 from ""MyTable"" where val2 =
> 'abc' "
> OR
> psql -d mydb -U usr -t -c ' select val1 from "MyTable" where val2 =
> ''abc'' '
>
> Both work fine on my windows machine.
This is completely not PostgreSQL related.
That's shell scripting/escaping problem.

Try that:
psql -d mydb -U usr -t -c 'select val1 from "MyTable" where val2 =
'"'"'abc'"'" (eww)
or
psql -d mydb -U usr -t -c "select val1 from \"MyTable\" where val2 =
'abc'" (seems better)


--
ru

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: cache lookup failed for function 0
Next
From: Michael Meskes
Date:
Subject: Re: BUG #4493: Memory leak in informix.c