Re: CREATE/ALTER ROLE with NULL password

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: CREATE/ALTER ROLE with NULL password
Дата
Msg-id 20181122075806.GK3369@paquier.xyz
обсуждение исходный текст
Ответ на Re: CREATE/ALTER ROLE with NULL password  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: CREATE/ALTER ROLE with NULL password  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
On Wed, Nov 21, 2018 at 11:58:25PM -0700, David G. Johnston wrote:
> Should tweak the paragraph to point out this exception as well.
>
>  The ENCRYPTED keyword has no effect, but is accepted for backwards
> compatibility[, except in the PASSWORD NULL form.]

The docs list the following with the patch as supported grammar:
[ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL
And it seems to me that '|' has priority over '[]', so ENCRYPTED does
not apply to PASSWORD NULL if phrased this way.
--
Michael

Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: CREATE/ALTER ROLE with NULL password
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: CREATE/ALTER ROLE with NULL password