vacuumdb: Add missing PQfinish() calls to vacuum_one_database().
authorNathan Bossart <nathan@postgresql.org>
Tue, 4 Feb 2025 19:26:57 +0000 (13:26 -0600)
committerNathan Bossart <nathan@postgresql.org>
Tue, 4 Feb 2025 19:26:57 +0000 (13:26 -0600)
commit8c2dd212d1bcefa8d2cbcbe53398de367c2d5f63
treeb3be00d257f59e0c2171ebfceb62159db00dbc02
parent061994fb31480e65c30f8747e8dcc55935174f4a
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 <daniel@yesql.se>
Discussion: http://postgr.es/m/Z6JAwqN1I8ljTuXp%40nathan
Backpatch-through: 13
src/bin/scripts/vacuumdb.c