postgresql/src/include/nodes
Amit Kapila f0b3573c3a Introduce "REFRESH SEQUENCES" for subscriptions.
This patch adds support for a new SQL command:
ALTER SUBSCRIPTION ... REFRESH SEQUENCES
This command updates the sequence entries present in the
pg_subscription_rel catalog table with the INIT state to trigger
resynchronization.

In addition to the new command, the following subscription commands have
been enhanced to automatically refresh sequence mappings:
ALTER SUBSCRIPTION ... REFRESH PUBLICATION
ALTER SUBSCRIPTION ... ADD PUBLICATION
ALTER SUBSCRIPTION ... DROP PUBLICATION
ALTER SUBSCRIPTION ... SET PUBLICATION

These commands will perform the following actions:
Add newly published sequences that are not yet part of the subscription.
Remove sequences that are no longer included in the publication.

This ensures that sequence replication remains aligned with the current
state of the publication on the publisher side.

Note that the actual synchronization of sequence data/values will be
handled in a subsequent patch that introduces a dedicated sequence sync
worker.

Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Nisha Moond <nisha.moond412@gmail.com>
Reviewed-by: Shlok Kyal <shlok.kyal.oss@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Hou Zhijie <houzj.fnst@fujitsu.com>
Discussion: https://postgr.es/m/CAA4eK1LC+KJiAkSrpE_NwvNdidw9F2os7GERUeSxSKv71gXysQ@mail.gmail.com
2025-10-23 08:30:27 +00:00
..
.gitignore Automatically generate node support functions 2022-07-09 08:53:59 +02:00
bitmapset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
execnodes.h Update some more forward declarations to use typedef 2025-09-25 14:33:19 +02:00
extensible.h Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
lockoptions.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
makefuncs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
memnodes.h Englishify comment wording 2025-10-18 12:50:14 +13:00
meson.build meson: Increase minimum version to 0.57.2 2025-07-02 11:14:53 +02:00
miscnodes.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
multibitmapset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
nodeFuncs.h Update various forward declarations to use typedef 2025-09-15 11:04:10 +02:00
nodes.h Pathify RHS unique-ification for semijoin planning 2025-08-19 09:35:40 +09:00
params.h Update various forward declarations to use typedef 2025-09-15 11:04:10 +02:00
parsenodes.h Introduce "REFRESH SEQUENCES" for subscriptions. 2025-10-23 08:30:27 +00:00
pathnodes.h Remove partColsUpdated. 2025-10-16 11:31:38 -05:00
pg_list.h Swap order of extern/static and pg_nodiscard 2025-03-14 07:18:07 +01:00
plannodes.h Remove partColsUpdated. 2025-10-16 11:31:38 -05:00
primnodes.h Assign each subquery a unique name prior to planning it. 2025-10-07 09:18:54 -04:00
print.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
queryjumble.h Make query jumbling also squash PARAM_EXTERN params 2025-06-24 19:36:32 +02:00
readfuncs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
replnodes.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
subscripting.h Update various forward declarations to use typedef 2025-09-15 11:04:10 +02:00
supportnodes.h Update various forward declarations to use typedef 2025-09-15 11:04:10 +02:00
tidbitmap.h Do a tiny bit of header file maintenance 2025-09-30 12:28:29 +02:00
value.h Update copyright for 2025 2025-01-01 11:21:55 -05:00