pgsql: pgbench: Remove dead code

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgbench: Remove dead code
Date: 2021-01-28 15:54:21
Message-ID: E1l59cj-0006Oh-0w@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgbench: Remove dead code

doConnect() never returns connections in state CONNECTION_BAD, so
checking for that is pointless. Remove the code that does.

This code has been dead since ba708ea3dc84, 20 years ago.

Discussion: https://postgr.es/m/20210126195224.GA20361@alvherre.pgsql
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/30854d94c627adf60cdb774c18c5b6b1290f6345

Modified Files
--------------
src/bin/pgbench/pgbench.c | 8 --------
1 file changed, 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-01-28 16:18:42 pgsql: Make ecpg's rjulmdy() and rmdyjul() agree with their declaration
Previous Message Alvaro Herrera 2021-01-28 13:56:29 Re: pgsql: Refactor code in tablecmds.c to check and process tablespace mov