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 E1fkxsm-0001jT-2m@gemulon.postgresql.org
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 <kaigai@heterodb.com>
Co-authored-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CAOP8fzYtVFWZADq4c=KoTAqgDrHWfng+AnEPEZccyxqxPVbbWQ@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/34295b87fbbcbaf26280f53f006b20971dbad1f3

Modified Files
--------------
src/backend/executor/execPartition.c | 52 ++++++++++++++++++++++++++----------
1 file changed, 38 insertions(+), 14 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