pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Raul Kaubi <raulkaubi@gmail.com>
Cc: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Determine if postgresql cluster running is primary or not
Date: Fri, 20 Nov 2020 11:04:03 +0100
Message-ID: <C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com> (raw)
In-Reply-To: <CAO_+3-BSHVFtAswJ80T0q4Fiz-hoEr_nDCcqQjZiMB=_N9d78Q@mail.gmail.com>
References: <CAO_+3-AV1WV_RfZ=7sbvNtwoZpvL23kpyzaUBJWRxhP47NVdOA@mail.gmail.com>
	<f09b2f94-d9a5-473c-d726-7e1aa53a7e94@gmx.net>
	<FD9D5838-D8AB-4466-A3DA-6780D09A429D@gmail.com>
	<CAO_+3-BSHVFtAswJ80T0q4Fiz-hoEr_nDCcqQjZiMB=_N9d78Q@mail.gmail.com>

Hi Raul,

> On 20. Nov, 2020, at 10:41, Raul Kaubi <raulkaubi@gmail.com> wrote:
> 
> Hi
> 
> Thanks.
> Seems like 9.5 does not work.
> 
> ERROR:  relation "pg_stat_wal_receiver" does not exist
> LINE 20:         from pg_stat_wal_receiver
> 
> Any ide how to achieve this in 9.5 ?
> 
> Raul

this query is tested to work on 10.x and newer, not 9.x. I don't have 9.x, so I can't say, sorry.

Cheers,
Paul




view thread (11+ messages)  latest in thread

Message-ID: <C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com>
Permalink:  ../C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com/
Also on:    postgresql.org/message-id/C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com

 · 

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-general@postgresql.org
  Cc: paul.foerster@gmail.com, raulkaubi@gmail.com, shammat@gmx.net
  Subject: Re: Determine if postgresql cluster running is primary or not
  In-Reply-To: <C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com>
  References: <CAO_+3-AV1WV_RfZ=7sbvNtwoZpvL23kpyzaUBJWRxhP47NVdOA@mail.gmail.com> <f09b2f94-d9a5-473c-d726-7e1aa53a7e94@gmx.net> <FD9D5838-D8AB-4466-A3DA-6780D09A429D@gmail.com> <CAO_+3-BSHVFtAswJ80T0q4Fiz-hoEr_nDCcqQjZiMB=_N9d78Q@mail.gmail.com> <C9C805DE-FDBD-4EF2-A3FC-DE87381212D8@gmail.com>

* 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