From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Documentaion fix.
Date: Wed, 1 Aug 2018 02:47:32 +0900
Message-ID: <20180731174732.GD2878@paquier.xyz> (raw)
In-Reply-To: <20180731145914.sn35a3yhdyksmrc7@alvherre.pgsql>
References: <20180731.190909.42582169.horiguchi.kyotaro@lab.ntt.co.jp>
<20180731145914.sn35a3yhdyksmrc7@alvherre.pgsql>
On Tue, Jul 31, 2018 at 10:59:14AM -0400, Alvaro Herrera wrote:
> How about pasting it like this?
>
> alvherre=# select * from pg_replication_slots \gx
> ─[ RECORD 1 ]───────┬────────────
> slot_name │ node_a_slot
> plugin │
> slot_type │ physical
> datoid │
> database │
> temporary │ f
> active │ f
> active_pid │
> xmin │
> catalog_xmin │
> restart_lsn │
> confirmed_flush_lsn │
Each time this catalog is changed, this would become incorrect. My
suggestion would be to change the query to that and call it a day:
SELECT slot_name, slot_type, active FROM pg_replication_slots;
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-hackers@postgresql.org
Cc: michael@paquier.xyz, alvherre@2ndquadrant.com, horiguchi.kyotaro@lab.ntt.co.jp
Subject: Re: Documentaion fix.
In-Reply-To: <20180731174732.GD2878@paquier.xyz>
References: <20180731.190909.42582169.horiguchi.kyotaro@lab.ntt.co.jp> <20180731145914.sn35a3yhdyksmrc7@alvherre.pgsql> <20180731174732.GD2878@paquier.xyz>
* 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