pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Query on Primary_conninfo
2+ messages / 2 participants
[nested] [flat]

* Query on Primary_conninfo
@ 2023-07-26 12:03 Praneel Devisetty <devisettypraneel@gmail.com>
  2023-07-27 00:55 ` Re: Query on Primary_conninfo Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 2+ messages in thread

From: Praneel Devisetty @ 2023-07-26 12:03 UTC (permalink / raw)
  To: pgsql-general

Hi,

I have a postgresql cluster running on 13.9.13 and standby has
primary_connfino as below

host=kabc03-dev01-ins06-pgs54-dbs-asy.int.dev.example.com port=5432
user=pubuser_1 passfile='/home/postgres/.pgpass' application_name=dr_node1

hostname keng03-dev01-ins06-wfm54-dbs-asy.int.dev.example.com is internally
mapped to a fqdn, say node1. When  a failover occurs hostname  is mapped to
node2(new master) post failover via a script.

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.

Thanks
Praneel

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Query on Primary_conninfo
  2023-07-26 12:03 Query on Primary_conninfo Praneel Devisetty <devisettypraneel@gmail.com>
@ 2023-07-27 00:55 ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2023-07-27 00:55 UTC (permalink / raw)
  To: Praneel Devisetty <devisettypraneel@gmail.com>; +Cc: pgsql-general

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-07-27 00:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26 12:03 Query on Primary_conninfo Praneel Devisetty <devisettypraneel@gmail.com>
2023-07-27 00:55 ` Michael Paquier <michael@paquier.xyz>

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