Re: Add into REFRESH PUBLICATION parameter exception_behaviour - Mailing list pgsql-hackers

From Andrei Lepikhov
Subject Re: Add into REFRESH PUBLICATION parameter exception_behaviour
Date
Msg-id db5cc186-6ffd-40a9-9a6d-61e0ab063c0c@gmail.com
Whole thread Raw
In response to Re: Add into REFRESH PUBLICATION parameter exception_behaviour  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Add into REFRESH PUBLICATION parameter exception_behaviour
List pgsql-hackers
On 17/2/26 05:07, Amit Kapila wrote:
> On Mon, Feb 16, 2026 at 6:04 PM Andrei Lepikhov <lepihov@gmail.com> wrote:
>> ALTER SUBSCRIPTION mysub
>>     REFRESH PUBLICATION (WITH exception_behaviour = ‘skip’);
>>
> 
> It will lead to skipping all future changes to that table by apply
> worker as we skip applying till the table is in READY state. So, all
> changes for transactions will get applied but the ones where we
> skipped copy which could lead to inconsistency. I think the better way
> to allow skip copying of initial data for particular tables is to
> someway provision copy_data = off for a set of tables.
Hmm, in my mind, there should be a FAIL table state introduced to let 
users know that a specific table has not been synchronised, and they 
need to check and repeat a smaller part of the job.
Or do you mean that a synchronising table might already contain some 
data, and that it is impossible to undo the sync and repeat it?

-- 
regards, Andrei Lepikhov,
pgEdge



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance
Next
From: Amit Kapila
Date:
Subject: Re: pgstat include expansion