pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve version reporting in pgbench.
Date: Fri, 18 Jun 2021 21:05:29 +0000
Message-ID: <E1luLg9-0004lF-9e@gemulon.postgresql.org> (raw)

Improve version reporting in pgbench.

Commit 547f04e73 caused pgbench to start printing its version number,
which seems like a fine idea, but it needs a bit more work:
* Print the server version number too, when different.
* Print the PG_VERSION string, not some reconstructed approximation.

This patch copies psql's well-tested code for the same purpose.

Discussion: https://postgr.es/m/1226654.1624036821@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/84bee9610965331d5110971d8de390a5bbe2effc

Modified Files
--------------
src/bin/pgbench/pgbench.c                    | 36 +++++++++++++++++++++++++++-
src/bin/pgbench/t/001_pgbench_with_server.pl |  2 +-
2 files changed, 36 insertions(+), 2 deletions(-)



Message-ID: <E1luLg9-0004lF-9e@gemulon.postgresql.org>
Permalink:  ../E1luLg9-0004lF-9e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1luLg9-0004lF-9e@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve version reporting in pgbench.
  In-Reply-To: <E1luLg9-0004lF-9e@gemulon.postgresql.org>
  References: <E1luLg9-0004lF-9e@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