Re: bug with psql 8.3.3 on ubuntu

From: toruvinn <toruvinn(at)lain(dot)pl>
To: virajk(at)gslab(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: bug with psql 8.3.3 on ubuntu
Date: 2008-10-25 13:46:59
Message-ID: op.ujk1wlpa33x80h@insanity.lain.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 23 Oct 2008 18:46:34 +0200, Viraj Kanwade <virajk(at)gslab(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Meskes 2008-10-25 14:43:38 Re: BUG #4493: Memory leak in informix.c
Previous Message Tom Lane 2008-10-25 12:35:15 Re: ERROR: cache lookup failed for function 0