git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0adb3dc) | patch
Add decoding of sequences to built-in replication
2022年3月24日 17:20:21 +0000 (18:20 +0100)
2022年3月24日 17:49:27 +0000 (18:49 +0100)
commit 75b1521dae1ff1fde17fda2e30e591f2e5d64b6a
Add decoding of sequences to built-in replication

This commit adds support for decoding of sequences to the built-in
replication (the infrastructure was added by commit 0da92dc530).

The syntax and behavior mostly mimics handling of tables, i.e. a
publication may be defined as FOR ALL SEQUENCES (replicating all
sequences in a database), FOR ALL SEQUENCES IN SCHEMA (replicating
all sequences in a particular schema) or individual sequences.

To publish sequence modifications, the publication has to include
'sequence' action. The protocol is extended with a new message,
describing sequence increments.

A new system view pg_publication_sequences lists all the sequences
added to a publication, both directly and indirectly. Various psql
commands (\d and \dRp) are improved to also display publications
including a given sequence, or sequences included in a publication.

Author: Tomas Vondra, Cary Huang
Reviewed-by: Peter Eisentraut, Amit Kapila, Hannu Krosing, Andres
Freund, Petr Jelinek
Discussion: https://postgr.es/m/d045f3c2-6cfb-06d3-5540-e63c320df8bc@enterprisedb.com
Discussion: https://postgr.es/m/1710ed7e13b.cd7177461430746.3372264562543607781@highgo.ca
40 files changed:
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/protocol.sgml diff | blob | blame | history
doc/src/sgml/ref/alter_publication.sgml diff | blob | blame | history
doc/src/sgml/ref/alter_subscription.sgml diff | blob | blame | history
doc/src/sgml/ref/create_publication.sgml diff | blob | blame | history
src/backend/catalog/objectaddress.c diff | blob | blame | history
src/backend/catalog/pg_publication.c diff | blob | blame | history
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/commands/publicationcmds.c diff | blob | blame | history
src/backend/commands/sequence.c diff | blob | blame | history
src/backend/commands/subscriptioncmds.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/executor/execReplication.c diff | blob | blame | history
src/backend/nodes/copyfuncs.c diff | blob | blame | history
src/backend/nodes/equalfuncs.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/replication/logical/proto.c diff | blob | blame | history
src/backend/replication/logical/tablesync.c diff | blob | blame | history
src/backend/replication/logical/worker.c diff | blob | blame | history
src/backend/replication/pgoutput/pgoutput.c diff | blob | blame | history
src/backend/utils/cache/relcache.c diff | blob | blame | history
src/backend/utils/cache/syscache.c diff | blob | blame | history
src/bin/pg_dump/pg_dump.c diff | blob | blame | history
src/bin/pg_dump/pg_dump.h diff | blob | blame | history
src/bin/pg_dump/t/002_pg_dump.pl diff | blob | blame | history
src/bin/psql/describe.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/catalog/pg_publication.h diff | blob | blame | history
src/include/catalog/pg_publication_namespace.h diff | blob | blame | history
src/include/commands/sequence.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/replication/logicalproto.h diff | blob | blame | history
src/include/replication/pgoutput.h diff | blob | blame | history
src/test/regress/expected/object_address.out diff | blob | blame | history
src/test/regress/expected/publication.out diff | blob | blame | history
src/test/regress/expected/rules.out diff | blob | blame | history
src/test/regress/sql/object_address.sql diff | blob | blame | history
src/test/regress/sql/publication.sql diff | blob | blame | history
src/test/subscription/t/030_sequences.pl [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /