mirror of
https://github.com/postgres/postgres.git
synced 2026-04-10 03:26:23 -04:00
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 ba708ea3dc, 20 years ago.
Discussion: https://postgr.es/m/20210126195224.GA20361@alvherre.pgsql
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
This commit is contained in:
parent
75e3cca42d
commit
ef2a83323c
1 changed files with 0 additions and 7 deletions
|
|
@ -6044,13 +6044,6 @@ main(int argc, char **argv)
|
|||
if (con == NULL)
|
||||
exit(1);
|
||||
|
||||
if (PQstatus(con) == CONNECTION_BAD)
|
||||
{
|
||||
pg_log_fatal("connection to database \"%s\" failed: %s",
|
||||
PQdb(con) ? PQdb(con) : "", PQerrorMessage(con));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (internal_script_used)
|
||||
GetTableInfo(con, scale_given);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue