]> granicus.if.org Git - postgresql/commit
Ability to advance replication slots
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 17 Jan 2018 11:38:34 +0000 (11:38 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 17 Jan 2018 11:38:34 +0000 (11:38 +0000)
commit9c7d06d60680c7f00d931233873dee81fdb311c6
tree7e2da1523af602caae0ef9d668d28b7aea1d6f70
parent585e166e46a1572b59eb9fdaffc2d4b785000f9e
Ability to advance replication slots

Ability to advance both physical and logical replication slots using a
new user function pg_replication_slot_advance().

For logical advance that means records are consumed as fast as possible
and changes are not given to output plugin for sending. Makes 2nd phase
(after we reached SNAPBUILD_FULL_SNAPSHOT) of replication slot creation
faster, especially when there are big transactions as the reorder buffer
does not have to deal with data changes and does not have to spill to
disk.

Author: Petr Jelinek
Reviewed-by: Simon Riggs
contrib/test_decoding/expected/slot.out
contrib/test_decoding/sql/slot.sql
doc/src/sgml/func.sgml
src/backend/replication/logical/decode.c
src/backend/replication/logical/logical.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/slotfuncs.c
src/backend/replication/walsender.c
src/include/catalog/pg_proc.h
src/include/replication/logical.h