Re: CREATE USER and createuser not working the same

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Cédric Villemain <cedric(dot)villemain(at)dalibo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stéphane Schildknecht <stephane(dot)schildknecht(at)postgresqlfr(dot)org>
Subject: Re: CREATE USER and createuser not working the same
Date: 2007-09-21 17:14:03
Message-ID: 20070921171403.GO5947@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Cédric Villemain wrote:
> Le jeudi 13 septembre 2007, Tom Lane a écrit :
> > =?ISO-8859-1?Q?St=E9phane_Schildknecht?=
> <stephane(dot)schildknecht(at)postgresqlfr(dot)org> writes:
> > > It seems the shell command createuser and the SQL CREATE USER don't act
> > > the same way,
> >
> > They aren't really claimed to.
>
> But the man say :
> " createuser is a wrapper around the SQL command CREATE ROLE [create_role(7)].
> There is no effective difference between creating users via this utility and
> via other methods for accessing the server."

Note that CREATE ROLE behaves slightly differently from CREATE USER.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2007-09-21 18:55:21 Re: BUG #3624: EXTRACT(QUARTER FROM INTERVAL) always returns 1
Previous Message Eugene Hutorny 2007-09-21 17:08:59 Re: BUG #3624: EXTRACT(QUARTER FROM INTERVAL) always returns 1