Re: CREATE/ALTER ROLE with NULL password

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: "steven(dot)winfield(at)cantabcapital(dot)com" <steven(dot)winfield(at)cantabcapital(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: CREATE/ALTER ROLE with NULL password
Date: 2018-11-22 16:54:07
Message-ID: CAKFQuwZTPLjY-Be+YUjMaKjMVr8pino8Q3n9iwUH5QN_Qee3Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Thursday, November 22, 2018, Michael Paquier <michael(at)paquier(dot)xyz> wrote:

> 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.
>
>
Yes, the syntax block is perfectly clear but we still explain said grammer
in words and should be precise there as well, IMO. Not a big deal though.

David J.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2018-11-23 00:13:26 Re: CREATE/ALTER ROLE with NULL password
Previous Message Michael Paquier 2018-11-22 07:58:06 Re: CREATE/ALTER ROLE with NULL password