Re: CREATE USER vs. createuser

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Mihai Gheorghiu" <tanethq(at)earthlink(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CREATE USER vs. createuser
Date: 2001-09-06 05:40:43
Message-ID: 200109060540.f865ei8s007640@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mihai Gheorghiu" wrote:
>With createuser I managed to create users like 12345 and John Doe (with a
>space).
>It did not work with CREATE USER.
>Aren't they supposed to do the same?

Such users need to be double-quoted -- which is how createuser does it:

QUERY="CREATE USER \"$NewUser\""
...

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Behold, I stand at the door, and knock; if any man
hear my voice, and open the door, I will come in to
him, and will sup with him, and he with me."
Revelation 3:20

Browse pgsql-general by date

  From Date Subject
Next Message Jason Donald 2001-09-06 06:16:05 update set from where... with count
Previous Message Taher H. Haveliwala 2001-09-06 05:36:05 storing large graphs in postgres