-
- Downloads
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
Showing
- contrib/test_decoding/expected/slot.out 30 additions, 0 deletionscontrib/test_decoding/expected/slot.out
- contrib/test_decoding/sql/slot.sql 15 additions, 0 deletionscontrib/test_decoding/sql/slot.sql
- doc/src/sgml/func.sgml 19 additions, 0 deletionsdoc/src/sgml/func.sgml
- src/backend/replication/logical/decode.c 32 additions, 12 deletionssrc/backend/replication/logical/decode.c
- src/backend/replication/logical/logical.c 25 additions, 5 deletionssrc/backend/replication/logical/logical.c
- src/backend/replication/logical/logicalfuncs.c 1 addition, 0 deletionssrc/backend/replication/logical/logicalfuncs.c
- src/backend/replication/slotfuncs.c 200 additions, 0 deletionssrc/backend/replication/slotfuncs.c
- src/backend/replication/walsender.c 1 addition, 0 deletionssrc/backend/replication/walsender.c
- src/include/catalog/pg_proc.h 2 additions, 0 deletionssrc/include/catalog/pg_proc.h
- src/include/replication/logical.h 8 additions, 0 deletionssrc/include/replication/logical.h
Loading
Please register or sign in to comment