Fix relation descriptor leak.
authorAmit Kapila <akapila@postgresql.org>
Tue, 12 Jan 2021 02:49:39 +0000 (08:19 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 12 Jan 2021 02:49:39 +0000 (08:19 +0530)
commit044aa9e70e552d9adb4f6429a1b0e96dde946a92
treea865aadff21f5819583d70bb7524b8a0468c3fd6
parentd6ad34f3410f101f9909c0918a49d6ce86fa216c
Fix relation descriptor leak.

We missed closing the relation descriptor while sending changes via the
root of partitioned relations during logical replication.

Author: Amit Langote and Mark Zhao
Reviewed-by: Amit Kapila and Ashutosh Bapat
Backpatch-through: 13, where it was introduced
Discussion: https://postgr.es/m/tencent_41FEA657C206F19AB4F406BE9252A0F69C06@qq.com
Discussion: https://postgr.es/m/tencent_6E296D2F7D70AFC90D83353B69187C3AA507@qq.com
src/backend/replication/pgoutput/pgoutput.c