PGHOST, PGPORT and PGUSER were already mentioned, but not PGDATABASE.
Like
5aaa584, backpatch down to 12.
Reported-by: Christophe Courtois
Discussion: https://postgr.es/m/
161399398648.21711.
15387267201764682579@wrigleys.postgresql.org
Backpatch-through: 12
+
+ dbname
+
+ Specifies the name of the database to test in. If this is
+ not specified, the environment variable
+ PGDATABASE is used. If that is not set, the
+ user name specified for the connection is used.
+
+
+
+
+ PGDATABASE
PGHOST
PGPORT
PGUSER