pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Vijaykumar Patil <vijaykumar.patil@maersk.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: General support on postgres replication
Date: Thu, 23 Nov 2023 09:43:48 +0100
Message-ID: <5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at> (raw)
In-Reply-To: <AMAP107MB0469F60A8FD4B12B68281E8BF5BAA@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM>
References: <AMAP107MB0469F60A8FD4B12B68281E8BF5BAA@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM>

On Wed, 2023-11-22 at 08:57 +0000, Vijaykumar Patil wrote:
> I have created streaming replication with two nodes .
>  
> One is primary and 2nd one is standby but after doing any DML or DDL operation on
> primary Walreceiver process is terminated on standby and standby database is
> opening in read write mode.
>  
> Below are the error details .
>  
> 2023-11-22 03:39:58 EST [1275942]: user=,db=,app=,client=LOG:  recovery stopping before commit of transaction 25627, time 2023-11-22 03:39:58.013764-05
> 2023-11-22 03:39:58 EST [1275942]: user=,db=,app=,client=LOG:  redo done at 1/260059E0 system usage: CPU: user: 0.02 s, system: 0.04 s, elapsed: 5197.90 s
> 2023-11-22 03:39:58 EST [1276846]: user=,db=,app=,client=FATAL:  terminating walreceiver process due to administrator command
> ERROR: [037]: archive-get command requires option: pg1-path
>        HINT: does this stanza exist?

It looks like you have a bad "restore_command" configured.

It would be intereseting to see the log lines before the ones you are showing.

Yours,
Laurenz Albe





view thread (5+ messages)  latest in thread

Message-ID: <5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at>
Permalink:  ../5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at/
Also on:    postgresql.org/message-id/5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, vijaykumar.patil@maersk.com
  Subject: Re: General support on postgres replication
  In-Reply-To: <5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at>
  References: <AMAP107MB0469F60A8FD4B12B68281E8BF5BAA@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM> <5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at>

* 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