Re: pgbench: supports PGDATABASE / warning about -d
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: christophe.courtois@dalibo.com, pgsql-docs@lists.postgresql.org
Date: 2021-02-24T05:29:31Z
Lists: pgsql-docs
Attachments
- pgbench-doc-db.patch (text/x-diff) patch
On Mon, Feb 22, 2021 at 11:39:46AM +0000, PG Doc comments form wrote: > 1) pgbench has always supported the PGDATABASE env variable, but it is not > listed along PGHOST/PGPORT & PGUSER in > https://www.postgresql.org/docs/13/pgbench.html#id-1.9.4.10.8. > PGDATABASE is listed in the pages of the psql/pg_dump/createdb... > utilities Yeah, let's fix that. Adding only PGDATABASE to the list of environment variables supported does not look enough to me, so I propose the simple patch attached to clarify what happens to dbname in more details. > 2) In "Common options", it would be useful to add a warning that "-d means > --debug and does NOT define the database, contrary to most other PostgreSQL > utilities". > (It seems to work and the consequence is a flood of SQL orders on the > screen.) I don't agree with this part. -- Michael
Commits
-
doc: Mention PGDATABASE as supported by pgbench
- 9e9b5c05010d 12.7 landed
- 1f56ae322943 13.3 landed
- a6f8dc47a058 14.0 landed