]> granicus.if.org Git - postgresql/commit
Fix per-tuple memory leak in partition tuple routing
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 1 Aug 2018 19:06:47 +0000 (15:06 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 1 Aug 2018 20:29:15 +0000 (16:29 -0400)
commit1c9bb02d8ec1d5b1b319e4fed70439a403c245b1
treead9be334478bd8059317a8dd156e71be216bbf04
parente3f99e03e2ec65e7ddb1f3056b545f2afa57b2d0
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
src/backend/executor/execPartition.c