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

Поиск
Список
Период
Сортировка
От Dilip Kumar
Тема Re: Segfault on logical replication to partitioned table with foreign children
Дата
Msg-id CAFiTN-vvnrvHeUibhwhnJNgTyE70DcBTgXPws3iO7HVM9TWANg@mail.gmail.com
обсуждение исходный текст
Ответ на Segfault on logical replication to partitioned table with foreign children  (ilya.v.gladyshev@gmail.com)
Ответы Re: Segfault on logical replication to partitioned table with foreign children  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andy Fan
Дата:
Сообщение: Re: How to started with Contributions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Segfault on logical replication to partitioned table with foreign children