pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: vacuumdb: Add missing PQfinish() calls to vacuum_one_database().
Date: Tue, 04 Feb 2025 19:28:00 +0000
Message-ID: <E1tfOaV-005NNZ-Ul@gemulon.postgresql.org> (raw)

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

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(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1tfOaV-005NNZ-Ul@gemulon.postgresql.org>
Permalink:  ../E1tfOaV-005NNZ-Ul@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tfOaV-005NNZ-Ul@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: vacuumdb: Add missing PQfinish() calls to vacuum_one_database().
  In-Reply-To: <E1tfOaV-005NNZ-Ul@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox