Fix relation descriptor leak.

Amit Kapila <akapila@postgresql.org>

Commit: decf3fe61ca2b707e8ac7ef996b16ace8df1d165
Author: Amit Kapila <akapila@postgresql.org>
Date: 2021-01-12T03:00:16Z
Releases: 13.2
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

Files

PathChange+/−
src/backend/replication/pgoutput/pgoutput.c modified +13 −3

Discussion