vacuumdb: Add missing PQfinish() calls to vacuum_one_database().
authorNathan Bossart <[email protected]>
Tue, 4 Feb 2025 19:26:57 +0000 (13:26 -0600)
committerNathan Bossart <[email protected]>
Tue, 4 Feb 2025 19:26:57 +0000 (13:26 -0600)
commitd6ea82f5da181eb4278595d7dca601568deeed5e
treec07bd8480ba3a848e63f6f90e60bee17d2dd66cc
parent21d7db2caf2a307170c26d1fc0551e0a42ca9daf
vacuumdb: Add missing PQfinish() calls to vacuum_one_database().

A few of the version checks in vacuum_one_database() do not call
PQfinish() before exiting.  This precedent was unintentionally
established in commit 00d1e88d36, and while it's probably not too
problematic, it seems better to properly close the connection.

Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/Z6JAwqN1I8ljTuXp%40nathan
Backpatch-through: 13
src/bin/scripts/vacuumdb.c