How to query "primary_slot_name" in slave server?

From: Edson Richter <edsonrichter(at)hotmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: How to query "primary_slot_name" in slave server?
Date: 2020-03-25 12:59:09
Message-ID: MN2PR01MB53273A1D0AED4F8E1AA06491CFCE0@MN2PR01MB5327.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

I've been searching over the net, but cannot find a reference.
I know that in server I can execute "select * from pg_replication_slots" and get all created slots.
But how can I query slave to know wich primay slot it is connecting to?

Thanks in advance,

Edson

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2020-03-25 13:01:45 Re: PLPGSQL: DECLARE more variable with same type at once
Previous Message David G. Johnston 2020-03-25 12:54:45 Re: How to plpgsql scripting