RE: sequencesync worker race with REFRESH SEQUENCES - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: sequencesync worker race with REFRESH SEQUENCES
Date
Msg-id OS9PR01MB121493C3AF11F71F4CF5DA4EDF5FD2@OS9PR01MB12149.jpnprd01.prod.outlook.com
Whole thread
List pgsql-hackers
Dear Vignesh, Noah,

Agree the basic approach that we avoid the re-initializing the catalog.
My primitive idea is to follow what slotsync does. SlotSyncCtxStruct::syncing is
checked from the SQL function and the slotsync worker, and either of them can
continue. So we may be able to have LogicalRepCtxStruct::synching_seqs or
something to indicate the status.
But there might be other ways, needs to be investigated.

Best regards,
Hayato Kuroda
FUJITSU LIMITED


pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Re: Proposal: INSERT ... BY NAME
Next
From: Shlok Kyal
Date:
Subject: Re: [PATCH] Preserve replication origin OIDs in pg_upgrade