pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Adjust pgbench option for debug mode.
Date: Mon, 25 Mar 2024 16:10:24 +0000
Message-ID: <E1romtz-005bOF-Ny@gemulon.postgresql.org> (raw)

Adjust pgbench option for debug mode.

Many other utilities use -d to specify the database to use, but
pgbench uses it to enable debug mode.  This is causing some users
to accidentally enable it.  This commit changes -d to accept the
database name and introduces --dbname.  Debug mode can still be
enabled with --debug.  This is a backward-incompatible change, but
it has been judged to be worth the trade-off, i.e., some scripts
that use pgbench will need to be updated.

Author: Greg Sabino Mullane
Reviewed-by: Tomas Vondra, Euler Taveira, Alvaro Herrera, David Christensen
Discussion: https://postgr.es/m/CAKAnmmLjAzwVtb%3DVEaeuCtnmOLpzkJ1uJ_XiQ362YdD9B72HSg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3ff01b2b6e7e8627b191a2c8c2690c8ea2f0820d

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                |  4 ++--
src/bin/pgbench/pgbench.c                    | 32 +++++++++++++++++-----------
src/bin/pgbench/t/001_pgbench_with_server.pl |  2 +-
src/bin/pgbench/t/002_pgbench_no_server.pl   |  2 +-
4 files changed, 24 insertions(+), 16 deletions(-)



view thread (2+ messages)

Message-ID: <E1romtz-005bOF-Ny@gemulon.postgresql.org>
Permalink:  ../E1romtz-005bOF-Ny@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1romtz-005bOF-Ny@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Adjust pgbench option for debug mode.
  In-Reply-To: <E1romtz-005bOF-Ny@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox