Re: CREATE/ALTER ROLE with NULL password
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: "steven.winfield@cantabcapital.com" <steven.winfield@cantabcapital.com>, "pgsql-docs@lists.postgresql.org" <pgsql-docs@lists.postgresql.org>
Date: 2018-11-22T07:58:06Z
Lists: 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
Commits
-
Clarify documentation about PASSWORD in CREATE/ALTER ROLE
- 3dab288f492d 11.2 landed
- d392e9bdea95 12.0 landed