Re: Documentaion fix.

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Documentaion fix.
Date: 2018-07-31 17:47:32
Message-ID: 20180731174732.GD2878@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2018-07-31 18:25:46 Re: Standby trying "restore_command" before local WAL
Previous Message Michael Paquier 2018-07-31 17:44:52 Re: BUG #15182: Canceling authentication due to timeout aka Denial of Service Attack