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

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: vacuumdb: Add missing PQfinish() calls to vacuum_one_database().
Date: 2025-02-04 19:28:00
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)yesql(dot)se>
Discussion: https://postgr.es/m/Z6JAwqN1I8ljTuXp%40nathan
Backpatch-through: 13

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d6ea82f5da181eb4278595d7dca601568deeed5e

Modified Files
--------------
src/bin/scripts/vacuumdb.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2025-02-04 21:22:42 pgsql: Allow usage of match_orclause_to_indexcol() for joins
Previous Message Peter Eisentraut 2025-02-04 14:55:44 pgsql: sepgsql: update TAP test to use fat comma style