public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jaime Casanova <[email protected]>
To: pgsql-docs <[email protected]>
Subject: CREATE USER
Date: Fri, 9 Dec 2011 16:09:25 -0500
Message-ID: <CAJKUy5iTn3oaqvZ5LaNw9M-KzSUMtoRpsQHMy2Wy=FBPoj3zBg@mail.gmail.com> (raw)
Hi,
I just notice that when you create a user using CREATE USER and give
the user the ability to create other users it gets created as
SUPERUSER. CREATE ROLE behaves as expected.
Looking at src/backend/parser/gram.y seems it's intentional, for
backwards compatibility. But the docs says:
"""
CREATE USER is now an alias for CREATE ROLE. The only difference is
that when the command is spelled CREATE USER, LOGIN is assumed by
default, whereas NOLOGIN is assumed when the command is spelled CREATE
ROLE.
"""
So, at least, we need to update docs or is undocumented intentionally
too? also i really think the command should raise a WARNING so we now
what's happening
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
view thread (13+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: CREATE USER
In-Reply-To: <CAJKUy5iTn3oaqvZ5LaNw9M-KzSUMtoRpsQHMy2Wy=FBPoj3zBg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox