Re: Proposal: Cascade REPLICA IDENTITY changes to leaf partitions

Поиск
Список
Период
Сортировка
От Chao Li
Тема Re: Proposal: Cascade REPLICA IDENTITY changes to leaf partitions
Дата
Msg-id CAEoWx2n_HX+epVG0rfMfKeDgBeaZHuYpP4Rtsv+JsydQ+WHjeA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal: Cascade REPLICA IDENTITY changes to leaf partitions  ("Euler Taveira" <euler@eulerto.com>)
Ответы RE: Proposal: Cascade REPLICA IDENTITY changes to leaf partitions
Список pgsql-hackers
Hi Amit and Euler,

Thank you both for all your advice. Here comes my first implementation of INHERIT in the attached v2 patch.

On Wed, Dec 17, 2025 at 8:11 AM Euler Taveira <euler@eulerto.com> wrote:
 
I wondering if we use INHERIT as default. The main advantage is usability as Chao
Li already mentioned. Is there any cases that having a different replica
identity from parent/partitioned table makes sense?


We can leave this topic open for discussion. In my current implementation, NO INHERIT is still the default. But if we decide to switch the default, I can add a new commit that should include only 1 line code change in gram.y and a tiny doc update.

0001 - when a new partition is created, use the parent's replication identity
0002 - add INHERIT | NO INHERIT

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
Вложения

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