]> granicus.if.org Git - postgresql/commit
Add 'active_in' column to pg_replication_slots.
authorAndres Freund <andres@anarazel.de>
Tue, 21 Apr 2015 09:51:06 +0000 (11:51 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 21 Apr 2015 09:51:06 +0000 (11:51 +0200)
commitd811c037cea2e929ee5823aab6e1bca0df8be245
tree46cd4fdf2fc78c9f20d8c65c15814e019b08af9b
parent528c2e44ab0a5ba49a5a04689dae3f674b71c15e
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
contrib/test_decoding/expected/ddl.out
doc/src/sgml/catalogs.sgml
doc/src/sgml/logicaldecoding.sgml
src/backend/catalog/system_views.sql
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/include/catalog/pg_proc.h
src/include/replication/slot.h
src/test/regress/expected/rules.out