Re: CREATE USER

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: CREATE USER
Дата
Msg-id 201112132336.pBDNaRB21797@momjian.us
обсуждение исходный текст
Ответ на Re: CREATE USER  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: CREATE USER  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-docs
Tom Lane wrote:
> Jaime Casanova <jaime@2ndquadrant.com> writes:
> > 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.
>
> Are you talking about the CREATEUSER option?  That is documented, quite
> clearly I think:
>
>     CREATEUSER
>     NOCREATEUSER
>
>     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!
>
> The only way we could really make this any better is to remove these
> keywords, which might be something to consider.  The preferred SUPERUSER
> spelling has been accepted since 8.1 ... is that long enough to ensure
> everyone's converted their client-side tools?  Probably not :-(

How does this relate to people restoring pre-8.1 pg_dumpall dumps?
Seems removing this option would cause the restore to fail.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

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

Предыдущее
От: Victor Yap
Дата:
Сообщение: subscribe
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: CREATE USER