Re: Documentaion fix. - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Documentaion fix.
Date
Msg-id 20180731174732.GD2878@paquier.xyz
Whole thread Raw
In response to Re: Documentaion fix.  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: Documentaion fix.  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #15182: Canceling authentication due to timeout aka Denialof Service Attack
Next
From: Stephen Frost
Date:
Subject: Re: Standby trying "restore_command" before local WAL