From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: add missing PQfinish() calls to vacuumdb |
Date: | 2025-02-04 16:51:28 |
Message-ID: | A281393D-2B20-47C0-87E2-B9C787247690@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 4 Feb 2025, at 17:30, Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
>
> I noticed that vacuum_one_database() doesn't call PQfinish() before
> pg_fatal() in a few of the server version checks. I seem to have
> unintentionally established this precedent in commit 00d1e88. Michael
> claimed to have fixed it before committing [0], but that seems to have been
> missed, too. I don't think this is a huge problem, but it does seem nicer
> to properly close the connection before exiting. If there are no
> objections, I plan to commit and back-patch the attached patch shortly.
No objections, I too prefer to do the right thing here. +1 on backpatching.
--
Daniel Gustafsson
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2025-02-04 16:54:06 | Re: Should heapam_estimate_rel_size consider fillfactor? |
Previous Message | Alex Friedman | 2025-02-04 16:48:09 | Re: Doc fix of aggressive vacuum threshold for multixact members storage |