Drop the temporary tuple slots allocated by pgoutput.

Amit Kapila <akapila@postgresql.org>

Commit: 76fda614027436ca030e1fac4fe33484e995970f
Author: Amit Kapila <akapila@postgresql.org>
Date: 2024-06-27T05:13:52Z
Releases: 15.8
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

Files

PathChange+/−
src/backend/replication/pgoutput/pgoutput.c modified +10 −0

Discussion