]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix relation descriptor leak.
authorAmit Kapila <akapila@postgresql.org>
Tue, 12 Jan 2021 03:00:16 +0000 (08:30 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 12 Jan 2021 03:00:16 +0000 (08:30 +0530)
commitdecf3fe61ca2b707e8ac7ef996b16ace8df1d165
tree7e6d9c768d6ef451710a34e0f7c7a4bdc8cfeaa0
parent14a608aef41b35ed4c2599493aaafe496fec3b3c
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