pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add 'active_in' column to pg_replication_slots.
Date: Tue, 21 Apr 2015 10:02:08 +0000
Message-ID: <E1YkV0K-00087B-2b@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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@mail.gmail.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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1YkV0K-00087B-2b@gemulon.postgresql.org>
Permalink:  ../E1YkV0K-00087B-2b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YkV0K-00087B-2b@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Add 'active_in' column to pg_replication_slots.
  In-Reply-To: <E1YkV0K-00087B-2b@gemulon.postgresql.org>
  References: <E1YkV0K-00087B-2b@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox