Re: Error in pgaccess (parse error at or near """) on create new user with password - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Error in pgaccess (parse error at or near """) on create new user with password
Date
Msg-id 11627.957880860@sss.pgh.pa.us
Whole thread Raw
In response to Re: Error in pgaccess (parse error at or near """) on create new user with password  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Responses Re: Error in pgaccess (parse error at or near """) on create new user with password
List pgsql-bugs
Peter Eisentraut <e99re41@DoCS.UU.SE> writes:
> On Tue, 9 May 2000, Thomas Swan wrote:
>> CREATE user "whomever" WITH PASSWORD "foo" CREATEDB CREATEUSER
>>
>> ERROR: parser: parse error at or near """

> The password must be single-quoted nowadays. Put that on the 7.0.1 list

I'd say single quotes is correct behavior for the password, actually.
Double quotes are only appropriate in a position where an SQL name is
wanted.  The underlying syntax is really
    CREATE USER <name> WITH PASSWORD <string>

            regards, tom lane

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Error in pgaccess (parse error at or near """) on create new user with password
Next
From: Mark Kirkwood
Date:
Subject: Cluster fails