Drop the temporary tuple slots allocated by pgoutput.
authorAmit Kapila <[email protected]>
Thu, 27 Jun 2024 06:05:00 +0000 (11:35 +0530)
committerAmit Kapila <[email protected]>
Thu, 27 Jun 2024 06:05:00 +0000 (11:35 +0530)
commit3e53492aa7084bceaa92757c90e067d79768797e
tree9021716dc7e6fc90cb4cde3091783f48e2607caa
parent7467939ea226ebc5608285486501b136b642c02b
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