pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wim Bertels <wim.bertels@ucll.be>
To: Keith Fiske <keith.fiske@crunchydata.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: viewing connectioninfo used by subscriber on the publication server when inactive
Date: Thu, 14 May 2020 14:33:24 +0200
Message-ID: <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be> (raw)
In-Reply-To: <CAODZiv5QMzAd5_ckxMMfxv84Y3YeASX9ePF3k1u1ERnRKgmrEw@mail.gmail.com>
References: <25037dc66dadcdd61148f6d59208217441abfd80.camel@ucll.be>
	<CAODZiv5QMzAd5_ckxMMfxv84Y3YeASX9ePF3k1u1ERnRKgmrEw@mail.gmail.com>

> 
> 
> The replication slot connection could use any role that has been
> configured to allow replication. So there is no way to know which
> role is actually using a slot without it actually being connected.
> You can look and see which roles have replication privileges by
> checking the output of \du in psql, but there is nothing tying any
> roles to any specific slots.

i assume that a replication slot can only be used by 1 subscriber,
and subscribers can migrate; just to be clear the conneinfo is only
kept on the subscriber and used on the publisher, but not stored on the
publisher (unless active)

so if a replication slot is inactive, you can't contact for example the
user that (implicitely) created the replication slot, to see if it is
still needed for example.

background: i'm trying out an atypical? setup with many students
subscribing to a single publication server, thus with subscribers that
are not always online. As the number of slots might quickly grow:)

> 
-- 
mvg,
Wim Bertels

--
Swerve me?  The path to my fixed purpose is laid with iron rails,
whereon my soul is grooved to run.  Over unsounded gorges, through
the rifled hearts of mountains, under torrents' beds, unerringly I rush!
		-- Captain Ahab, "Moby Dick"






view thread (12+ messages)  latest in thread

Message-ID: <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be>
Permalink:  ../5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be/
Also on:    postgresql.org/message-id/5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be

 · 

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-admin@postgresql.org
  Cc: wim.bertels@ucll.be, keith.fiske@crunchydata.com
  Subject: Re: viewing connectioninfo used by subscriber on the publication server when inactive
  In-Reply-To: <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be>
  References: <25037dc66dadcdd61148f6d59208217441abfd80.camel@ucll.be> <CAODZiv5QMzAd5_ckxMMfxv84Y3YeASX9ePF3k1u1ERnRKgmrEw@mail.gmail.com> <5f77a6c973aaf8f9086cf42933f476e5bd9a948d.camel@ucll.be>

* 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