Re: CREATEUSER == SUPERUSER?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATEUSER == SUPERUSER?
Дата
Msg-id 6756.1136832340@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CREATEUSER == SUPERUSER?  (Yoshiyuki Asaba <y-asaba@sraoss.co.jp>)
Список pgsql-patches
Yoshiyuki Asaba <y-asaba@sraoss.co.jp> writes:
> The following command makes a superuser. Is this correct?

> template1=# CREATE USER xyz CREATEUSER;

Yes, read the CREATE ROLE documentation:

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!


> I think CREATEUSER keyword is equal to CREATEROLE.

The proposed patch breaks backward compatibility, which is the only
reason we still allow these keywords at all.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: plpgsql: check domain constraints
Следующее
От: Tom Lane
Дата:
Сообщение: Proposed patch to change "missing FROM" messages