Skip site navigation (1) Skip section navigation (2)


From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Date: 2011-12-09 21:09:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs

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

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
Professional PostgreSQL: Soporte 24x7 y capacitación


pgsql-docs by date

Next:From: Tom LaneDate: 2011-12-10 03:21:17
Subject: Re: CREATE USER
Previous:From: Magnus HaganderDate: 2011-12-07 09:38:59
Subject: Re: [HACKERS] Moving tablespaces

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group