BUG #16206: Documentation for PGDATABASE libpq env var is misleading - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16206: Documentation for PGDATABASE libpq env var is misleading
Date
Msg-id 16206-92ff1acf0650ff10@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16206
Logged by:          Joachim Jablon
Email address:      ewjoachim@gmail.com
PostgreSQL version: 12.1
Operating system:   All
Description:

Documentation for PGDATABASE says:

>  PGDATABASE behaves the same as the dbname connection parameter.

Documentation for dbname says:

> The database name. Defaults to be the same as the user name. In certain
contexts, the value is checked for extended formats; see Section 33.1.1 for
more details on those.

But PGDATABASE is not checked for extended formats. This should be
explicitly said in the documentation. I believe a simple sentence like:

>  PGDATABASE behaves the same as the dbname connection parameter but the
value is not checked for extended format.

might be enough.


pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: libpq parameter parsing problem
Next
From: andreas@elbrief.de
Date:
Subject: create rule with multiple commands