Fix relation descriptor leak.

Amit Kapila <akapila@postgresql.org>

Commit: 044aa9e70e552d9adb4f6429a1b0e96dde946a92
Author: Amit Kapila <akapila@postgresql.org>
Date: 2021-01-12T02:49:39Z
Releases: 14.0
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