pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Praneel Devisetty <devisettypraneel@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Query on Primary_conninfo
Date: Thu, 27 Jul 2023 09:55:17 +0900
Message-ID: <ZMHAdX2JmUUuPHVD@paquier.xyz> (raw)
In-Reply-To: <CAHnVB4CwpkerWCg_-kUM51cr_im1KZfmjbOQn86k4Mu+FQuVbg@mail.gmail.com>
References: <CAHnVB4CwpkerWCg_-kUM51cr_im1KZfmjbOQn86k4Mu+FQuVbg@mail.gmail.com>

On Wed, Jul 26, 2023 at 05:33:50PM +0530, Praneel Devisetty wrote:
> Standy is not picking this change even after a reload.
> 
> Restarting standby is working out, but as PG13 supports reload of
> primary_connfino is there a reliable way to achieve this without restarting
> standby database.

primary_conninfo should be able to switch dynamically the upstream
server it streams WAL from on a reload.  I've quickly checked with a
simple configuration and I was able to get it done without a restart
here.  Perhaps you have found a bug, but it's hard to say without
having more details about what's happening.  For example, what do the
logs of the standby tell you?  Are you sure that the reload was done
on the correct node?  Did you check with a SHOW command that the new
value is reflected on your standby to what you want it to be?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (2+ messages)

Message-ID: <ZMHAdX2JmUUuPHVD@paquier.xyz>
Permalink:  ../ZMHAdX2JmUUuPHVD@paquier.xyz/
Also on:    postgresql.org/message-id/ZMHAdX2JmUUuPHVD@paquier.xyz

 · 

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: michael@paquier.xyz, devisettypraneel@gmail.com
  Subject: Re: Query on Primary_conninfo
  In-Reply-To: <ZMHAdX2JmUUuPHVD@paquier.xyz>
  References: <CAHnVB4CwpkerWCg_-kUM51cr_im1KZfmjbOQn86k4Mu+FQuVbg@mail.gmail.com> <ZMHAdX2JmUUuPHVD@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