From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add 'active_in' column to pg_replication_slots. |
Date: | 2015-04-21 10:02:08 |
Message-ID: | E1YkV0K-00087B-2b@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)mail(dot)gmail(dot)com
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d811c037cea2e929ee5823aab6e1bca0df8be245
Modified Files
--------------
contrib/test_decoding/expected/ddl.out | 4 ++--
doc/src/sgml/catalogs.sgml | 10 ++++++++++
doc/src/sgml/logicaldecoding.sgml | 8 ++++----
src/backend/catalog/system_views.sql | 1 +
src/backend/replication/slot.c | 30 ++++++++++++++++--------------
src/backend/replication/slotfuncs.c | 13 +++++++++----
src/include/catalog/pg_proc.h | 2 +-
src/include/replication/slot.h | 4 ++--
src/test/regress/expected/rules.out | 3 ++-
9 files changed, 47 insertions(+), 28 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2015-04-21 11:10:43 | pgsql: Add missing installcheck target to pg_rewind's Makefile |
Previous Message | Peter Eisentraut | 2015-04-21 01:50:06 | pgsql: Move pg_test_timing from contrib/ to src/bin/ |