vacuumdb: Add missing PQfinish() calls to vacuum_one_database().

Nathan Bossart <nathan@postgresql.org>

Commit: 8c2dd212d1bcefa8d2cbcbe53398de367c2d5f63
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2025-02-04T19:26:57Z
Releases: 15.11
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: https://postgr.es/m/Z6JAwqN1I8ljTuXp%40nathan
Backpatch-through: 13

Files

PathChange+/−
src/bin/scripts/vacuumdb.c modified +9 −0

Discussion