Re: CREATE USER vs. createuser - Mailing list pgsql-general

From Oliver Elphick
Subject Re: CREATE USER vs. createuser
Date
Msg-id 200109060540.f865ei8s007640@linda.lfix.co.uk
Whole thread Raw
In response to CREATE USER vs. createuser  ("Mihai Gheorghiu" <tanethq@earthlink.net>)
List 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.Elphick@lfix.co.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



pgsql-general by date:

Previous
From: "Taher H. Haveliwala"
Date:
Subject: storing large graphs in postgres
Next
From: Bruce Momjian
Date:
Subject: Re: embedded SQL cursos declare fails