LOGIN/NOLOGIN in psql

Started by PG Bug reporting formabout 6 years ago3 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/sql-createrole.html
Description:

Please add something like this to the LOGIN/NOLOGIN part:

The `psql` commands `\du` and `\dg` show `Cannot login` for roles with
`NOLOGIN` and nothing for roles with `LOGIN`. For other attributes `psql`
show their positive forms.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: PG Bug reporting form (#1)
Re: LOGIN/NOLOGIN in psql

On Thu, Feb 13, 2020 at 2:53 AM PG Doc comments form <noreply@postgresql.org>
wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/sql-createrole.html
Description:

Please add something like this to the LOGIN/NOLOGIN part:

The `psql` commands `\du` and `\dg` show `Cannot login` for roles with
`NOLOGIN` and nothing for roles with `LOGIN`. For other attributes `psql`
show their positive forms.

I suspect it is intentional that none (I think...) of the material in the
SQL Commands section mentions psql. I can see changing the psql page to
note the absence of a positive form presentation for this particular
attribute under the descriptions of the \du and \dg meta-commands.

David J.

#3Andreas Heiduk
asheiduk@gmail.com
In reply to: David G. Johnston (#2)
Re: LOGIN/NOLOGIN in psql

Am 13.02.20 um 15:55 schrieb David G. Johnston:

On Thu, Feb 13, 2020 at 2:53 AM PG Doc comments form
<noreply@postgresql.org <mailto:noreply@postgresql.org>> wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/sql-createrole.html
Description:

Please add something like this to the LOGIN/NOLOGIN part:

The `psql` commands `\du` and `\dg` show `Cannot login` for roles with
`NOLOGIN` and nothing for roles with `LOGIN`. For other attributes
`psql`
show their positive forms.

I suspect it is intentional that none (I think...) of the material in
the SQL Commands section mentions psql.  I can see changing the psql
page to note the absence of a positive form presentation for this
particular attribute under the descriptions of the \du and \dg
meta-commands.

David J.

Tinkering a bit more: The `INHERIT` attribute is also not shown - only
the negative form. Therefore:

I assume now, that `psql` only show these attributes, which are not in
the default state as explained in the `CREATE ROLE` page.

Explaining that an showing the possibly shown values in the mentioned
sections of `psql` would be a good idea.

Andreas H.