Re: BUG #2758: missing quotes in SQL sentence - Mailing list pgsql-bugs

From Dave Page
Subject Re: BUG #2758: missing quotes in SQL sentence
Date
Msg-id 455ACF98.8000500@postgresql.org
Whole thread Raw
In response to Re: BUG #2758: missing quotes in SQL sentence  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
Peter Eisentraut wrote:
> Dave Page wrote:
>> No, it's the intended behaviour. pgAdmin doesn't have any idea how
>> you want to quote SET values, so it leaves it to you to add them.
>
> Just quote them all.

Doesn't work:

scratch=# set search_path = '"MyNameSpace1", "MyNameSpace2"';
ERROR:  schema ""MyNameSpace1", "MyNameSpace2"" does not exist

That one must be unquoted:

scratch=# set search_path = "MyNameSpace1", "MyNameSpace2";
SET

Regards, Dave.

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #2758: missing quotes in SQL sentence
Next
From: Zdenek Kotala
Date:
Subject: Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio