Re: General support on postgres replication - Mailing list pgsql-general

From Laurenz Albe
Subject Re: General support on postgres replication
Date
Msg-id 5f0a9def7fddf4cfca1d6ea2af141da633b97d37.camel@cybertec.at
Whole thread Raw
In response to General support on postgres replication  (Vijaykumar Patil <vijaykumar.patil@maersk.com>)
Responses RE: General support on postgres replication
List pgsql-general
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,
time2023-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



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: strange behavior of pg_hba.conf file
Next
From: Laurenz Albe
Date:
Subject: Re: Configuration knobs & dials to speed up query optimization