From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Matheus Alcantara <matheusssilv97(at)gmail(dot)com> |
Cc: | Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Fixing memory leaks in postgres_fdw |
Date: | 2025-05-29 17:02:39 |
Message-ID: | 2082618.1748538159@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I wrote:
> Pushed v5-0001, and here are rebased versions of the other four
> patches, mostly so that the cfbot knows what is the patch-of-record.
Finally, here's a minimalistic version of the original v1-0001
patch that I think we could safely apply to fix the DirectModify
problem in the back branches. I rejiggered it to not depend on
inventing MemoryContextUnregisterResetCallback, so that there's
not hazards of minor-version skew between postgres_fdw and the
main backend. This will of course not fix any other PGresult-leakage
cases that may exist, but I'm content to fix the known problem
in back branches.
(Patch is labeled .txt so that cfbot doesn't think it's the
patch-of-record.)
regards, tom lane
Attachment | Content-Type | Size |
---|---|---|
v7-backpatchable-fix.patch.txt | text/x-diff | 3.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Feike Steenbergen | 2025-05-29 18:01:27 | Re: pg18: Virtual generated columns are not (yet) safe when superuser selects from them |
Previous Message | Fujii Masao | 2025-05-29 16:44:25 | Re: Assertion failure in smgr.c when using pg_prewarm with partitioned tables |