RE: Logical Replication of sequences

From: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
To: 'vignesh C' <vignesh21(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Euler Taveira <euler(at)eulerto(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
Subject: RE: Logical Replication of sequences
Date: 2026-01-20 09:38:42
Message-ID: OS7PR01MB145592F3EF8554DD4786F2FD3F589A@OS7PR01MB14559.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear Vignesh,

> > That is not possible. Updated accordingly with slight change to
> > comment. The attached patch has the changes for the same.
>
> During further testing, I identified an issue where the code could not
> reliably distinguish whether a sequence was dropped on the subscriber
> or on the publisher. A sequence dropped on the subscriber should be
> treated as a successful case, since the only viable action is to skip
> it, whereas a missing sequence on the publisher should be treated as
> an error. This distinction has now been handled correctly and fixed in
> the updated version.

Thanks for updating the patch. I verified the patch and LGTM.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuro Yamada 2026-01-20 10:01:04 Re: [PATCH] psql: add \dcs to list all constraints
Previous Message Peter Eisentraut 2026-01-20 09:37:35 Change copyObject() to use typeof_unqual