Re: Discrepancy in 9.1 Documentation on CREATE ROLE

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Discrepancy in 9.1 Documentation on CREATE ROLE
Дата
Msg-id CA+TgmoafQga7wwv0wFj3KUqTa_=3GbEzgzOgONHPqVoG9KC2qg@mail.gmail.com
обсуждение исходный текст
Ответ на Discrepancy in 9.1 Documentation on CREATE ROLE  (Ron Adams <ron@constellationmedia.com>)
Ответы Re: Discrepancy in 9.1 Documentation on CREATE ROLE  (Ron Adams <ron@constellationmedia.com>)
Re: Discrepancy in 9.1 Documentation on CREATE ROLE  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
On Thu, Oct 6, 2011 at 10:48 PM, Ron Adams <ron@constellationmedia.com> wrote:
> The help for LOGIN/NOLOGIN at
> http://www.postgresql.org/docs/9.1/static/sql-createrole.html: "...NOLOGIN
> is the default, except when CREATE ROLE is invoked through its alternative
> spelling CREATE USER." The help for CREATE USER: "These clauses are an
> obsolete, but still accepted, spelling of SUPERUSER and NOSUPERUSER. Note
> that they are not equivalent to CREATEROLE as one might naively expect!" Eh?

OK, brace yourself...

You're mixing up the CREATEUSER option to the CREATE ROLE command with
the completely separate command CREATE USER.

See http://www.postgresql.org/docs/9.1/static/sql-createuser.html

I wonder if we ought to consider removing CREATEUSER and NOCREATEUSER
as synonyms for SUPERUSER and NOSUPERUSER.  It looks like that change
was made in 8.1, which is now EOL.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

В списке pgsql-docs по дате отправления:

Предыдущее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: PQconninfoParse()
Следующее
От: Ron Adams
Дата:
Сообщение: Re: Discrepancy in 9.1 Documentation on CREATE ROLE