Re: Segfault on logical replication to partitioned table with foreign children
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: ilya.v.gladyshev@gmail.com
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-10-30T09:46:01Z
Lists: pgsql-hackers
On Sat, Oct 29, 2022 at 1:01 AM <ilya.v.gladyshev@gmail.com> wrote: > > Right now it is possible to add a partitioned table with foreign tables > as its children as a target of a subscription. It can lead to an assert > (or a segfault, if compiled without asserts) on a logical replication > worker when the worker attempts to insert the data received via > replication into the foreign table. Reproduce with caution, the worker > is going to crash and restart indefinitely. The setup: Yes, this looks like a bug and your fix seems correct to me. It would be nice to add a test case for this scenario. -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Defend against unsupported partition relkind in logical replication worker.
- be541efbfd11 16.0 landed
- a5b7821fc908 14.6 landed
- 4d3f7e75c8a3 13.9 landed
- 414d29a826f3 15.1 landed