]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pgbench: Remove dead code
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Jan 2021 15:50:40 +0000 (12:50 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Jan 2021 15:50:40 +0000 (12:50 -0300)
commit30854d94c627adf60cdb774c18c5b6b1290f6345
tree99a831029eb1056dbca69040ca78c778ac9d935d
parent30f912a41378bd0ce363276b2e6b9f590520af1d
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@sss.pgh.pa.us>
src/bin/pgbench/pgbench.c