pgsql: Improve version reporting in pgbench.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve version reporting in pgbench.
Date: 2021-06-18 21:05:29
Message-ID: E1luLg9-0004lF-9e@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-06-18 22:00:33 pgsql: Fix misbehavior of DROP OWNED BY with duplicate polroles entries
Previous Message Andrew Dunstan 2021-06-18 17:24:32 Re: pgsql: s/table_close/heap_close/ in v11.