Re: Fixing memory leaks in postgres_fdw
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matheus Alcantara <matheusssilv97@gmail.com>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2025-05-30T18:31:54Z
Lists: pgsql-hackers
Attachments
- v8-0001-Create-infrastructure-to-reliably-prevent-leakage.patch (text/x-diff) patch v8-0001
- v8-0002-Reap-the-benefits-of-not-having-to-avoid-leaking-.patch (text/x-diff) patch v8-0002
- v8-0003-Run-pgindent-on-the-changes-of-the-previous-patch.patch (text/x-diff) patch v8-0003
- v8-0004-Silence-leakage-complaint-about-postgres_fdw-s-In.patch (text/x-diff) patch v8-0004
Matheus Alcantara <matheusssilv97@gmail.com> writes: > Sounds reasonable to me. +1 for going forward with these patches. I got cold feet about applying the full patchset to v18 --- it's kind of a large change and it's not fixing any known bug that the minimal patch doesn't, so it feels like something not to do after beta1. So I pushed the minimal patch in all branches. Here is a rebased-on-top-of-that version of the full patchset, which I plan to push once v19 development opens. regards, tom lane
Commits
-
Silence leakage complaint about postgres_fdw's InitPgFdwOptions.
- 0f9d4d7c12dc 19 (unreleased) landed
-
Run pgindent on the changes of the previous patch.
- 73873805fb36 19 (unreleased) landed
-
Reap the benefits of not having to avoid leaking PGresults.
- 80aa9848befc 19 (unreleased) landed
-
Create infrastructure to reliably prevent leakage of PGresults.
- 7d8f59577924 19 (unreleased) landed
-
Fix memory leakage in postgres_fdw's DirectModify code path.
- 9339c85afc91 17.6 landed
- 4a07c096132c 14.19 landed
- 3c31594f55cd 15.14 landed
- 2b92dc4eeb51 16.10 landed
- 271cb7eaa7c8 13.22 landed
- 232d8caeaaa6 18.0 landed
-
Avoid resource leaks when a dblink connection fails.
- e7d3d4ed412e 13.22 landed
- e20b3256ae46 17.6 landed
- 8eef55db13fe 16.10 landed
- 470273da0ff7 18.0 landed
- 2cd2222ca5f4 14.19 landed
- 09c9ae8f6d3a 15.14 landed