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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b508a56) | patch
Logical decoding of TRUNCATE
Sat, 7 Apr 2018 15:17:56 +0000 (11:17 -0400)
Sat, 7 Apr 2018 15:34:10 +0000 (11:34 -0400)
commit 5dfd1e5a6696b271a2cdee54143fbc209c88c02f
Logical decoding of TRUNCATE

Add a new WAL record type for TRUNCATE, which is only used when
wal_level >= logical. (For physical replication, TRUNCATE is already
replicated via SMGR records.) Add new callback for logical decoding
output plugins to receive TRUNCATE actions.

Author: Simon Riggs <simon@2ndquadrant.com>
Author: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
Author: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Reviewed-by: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
15 files changed:
contrib/test_decoding/Makefile diff | blob | blame | history
contrib/test_decoding/expected/truncate.out [new file with mode: 0644] blob
contrib/test_decoding/sql/truncate.sql [new file with mode: 0644] blob
contrib/test_decoding/test_decoding.c diff | blob | blame | history
doc/src/sgml/logicaldecoding.sgml diff | blob | blame | history
src/backend/access/heap/heapam.c diff | blob | blame | history
src/backend/access/rmgrdesc/heapdesc.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/replication/logical/decode.c diff | blob | blame | history
src/backend/replication/logical/logical.c diff | blob | blame | history
src/backend/replication/logical/reorderbuffer.c diff | blob | blame | history
src/include/access/heapam_xlog.h diff | blob | blame | history
src/include/commands/tablecmds.h diff | blob | blame | history
src/include/replication/output_plugin.h diff | blob | blame | history
src/include/replication/reorderbuffer.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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