Fix relation descriptor leak.
Amit Kapila <akapila@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/pgoutput/pgoutput.c | modified | +13 −3 |
Discussion
- Re: adding partitioned tables to publications 5 messages · 2020-12-30 → 2021-01-13
- [Bug Fix] Logical replication on partition table is very slow and CPU is 99% 3 messages · 2021-01-04 → 2021-01-12