]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Drop the temporary tuple slots allocated by pgoutput.
authorAmit Kapila <akapila@postgresql.org>
Thu, 27 Jun 2024 05:49:57 +0000 (11:19 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 27 Jun 2024 05:49:57 +0000 (11:19 +0530)
commitb8f953d8d7bff6ca5d7fc8cb0f37a9d3d7a7462b
treec3a8e0504e63d69ff46672d841445298fd277648
parent6f61d0e7e2f1395d0a2e06c52b36721cf1656a55
Drop the temporary tuple slots allocated by pgoutput.

In pgoutput, when converting the child table's tuple format to match the
parent table's, we temporarily create a new slot to store the converted
tuple. However, we missed to drop such temporary slots, leading to
resource leakage.

Reported-by: Bowen Shi
Author: Hou Zhijie
Reviewed-by: Amit Kapila
Backpatch-through: 15
Discussion: https://postgr.es/m/CAM_vCudv8dc3sjWiPkXx5F2b27UV7_YRKRbtSCcE-pv=cVACGA@mail.gmail.com
src/backend/replication/pgoutput/pgoutput.c