pgsql: Fix per-tuple memory leak in partition tuple routing - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Fix per-tuple memory leak in partition tuple routing
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
Fix per-tuple memory leak in partition tuple routing

Some operations were being done in a longer-lived memory context,
causing intra-query leaks.  It's not noticeable unless you're doing a
large COPY, but if you are, it eats enough memory to cause a problem.

Co-authored-by: Kohei KaiGai <[email protected]>
Co-authored-by: Amit Langote <[email protected]>
Co-authored-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/CAOP8fzYtVFWZADq4c=KoTAqgDrHWfng+AnEPEZccyxqxPVbbWQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1c9bb02d8ec1d5b1b319e4fed70439a403c245b1

Modified Files
--------------
src/backend/executor/execPartition.c | 57 ++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 16 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Use signals for postmaster death on Linux.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Fix unnoticed variable shadowing in previous commit