[PATCH] pgbench - refactor some connection finish/null into common function

Rady, Doug <radydoug@amazon.com>

From: "Rady, Doug" <radydoug@amazon.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-01-29T23:20:48Z
Lists: pgsql-hackers

Attachments

This patch refactors all of the connection state PQfinish() and NULL’ing into a single function.
Excludes PQfinish() in doConnect().
This came out of earlier ppoll() work where this was felt to be worthwhile but not directly relevant to that change.

doug


Commits

  1. pgbench: consolidate a few PQfinish calls.