Re: Segfault on logical replication to partitioned table with foreign children

2022-10-31 Thread ilya . v . gladyshev
On Sun, 2022-10-30 at 09:39 -0400, Tom Lane wrote: > Dilip Kumar writes: > > 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. > > A test case doesn't seem that exciting to me.  If we were trying to > make it actually

Segfault on logical replication to partitioned table with foreign children

2022-10-28 Thread ilya . v . gladyshev
Hi, 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