On Fri, May 17, 2019 at 9:16 AM Lætitia Avrot <laetitia(dot)avrot(at)gmail(dot)com>
wrote:
>
> Given that, I think it would be a good thing to generalize the -d switch
> (and maybe the --maintenance-db switch too).
>
>
Just a couple of quick comments:
Some of those tools user --dbname as a long option.
Most of those tools also use the connection environment variables used
by libpq: PGDATABASE
Pgbench is documented [1]: pgbench [option...] [dbname]
Regards,
Juan José Santamaría Flecha
[1] https://www.postgresql.org/docs/current/pgbench.html