-
- Downloads
Add 'active_in' column to pg_replication_slots.
Right now it is visible whether a replication slot is active in any session, but not in which. Adding the active_in column, containing the pid of the backend having acquired the slot, makes it much easier to associate pg_replication_slots entries with the corresponding pg_stat_replication/pg_stat_activity row. This should have been done from the start, but I (Andres) dropped the ball there somehow. Author: Craig Ringer, revised by me Discussion: CAMsr+YFKgZca5_7_ouaMWxA5PneJC9LNViPzpDHusaPhU9pA7g@mail.gmail.com
Showing
- contrib/test_decoding/expected/ddl.out 2 additions, 2 deletionscontrib/test_decoding/expected/ddl.out
- doc/src/sgml/catalogs.sgml 10 additions, 0 deletionsdoc/src/sgml/catalogs.sgml
- doc/src/sgml/logicaldecoding.sgml 4 additions, 4 deletionsdoc/src/sgml/logicaldecoding.sgml
- src/backend/catalog/system_views.sql 1 addition, 0 deletionssrc/backend/catalog/system_views.sql
- src/backend/replication/slot.c 16 additions, 14 deletionssrc/backend/replication/slot.c
- src/backend/replication/slotfuncs.c 9 additions, 4 deletionssrc/backend/replication/slotfuncs.c
- src/include/catalog/pg_proc.h 1 addition, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/replication/slot.h 2 additions, 2 deletionssrc/include/replication/slot.h
- src/test/regress/expected/rules.out 2 additions, 1 deletionsrc/test/regress/expected/rules.out
Loading
Please register or sign in to comment