pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Alpaslan AKDAĞ <alpaslanakdag@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: archive command doesnt work
Date: Thu, 08 Feb 2024 21:10:26 +0100
Message-ID: <a3a4da91f3aa47d9e47802d8b274effab85202e3.camel@cybertec.at> (raw)
In-Reply-To: <CAHKeUX8qVZygzqru+avd+sACYGGy4R3XtK6UFqm-a3PcfkGzhw@mail.gmail.com>
References: <CAHKeUX-MoL9gwrWBi=X47EZFo4kvF+d8ZZFQgc3wAOpW9gwdiA@mail.gmail.com>
	<410d8131f76b6c43d40a301ed0f3afa226379ca5.camel@cybertec.at>
	<CAHKeUX8qVZygzqru+avd+sACYGGy4R3XtK6UFqm-a3PcfkGzhw@mail.gmail.com>

On Thu, 2024-02-08 at 09:23 +0100, Alpaslan AKDAĞ wrote:
> Thank you for your answer.
> 
> I have checked the pg_is_in_recovery() and here are the results
> from primary and hot stand by server.
> 
> Primary (old standby ):
> select pg_is_in_recovery();
>  pg_is_in_recovery 
> -------------------
>  f
> (1 row)
> 
> hot standby(old primary):
> select pg_is_in_recovery();
>  pg_is_in_recovery 
> -------------------
>  t
> (1 row)
> and there is also standby.signal file in standby server.
> So it seems that there is nothing wrong.
> 
> recovery_min_apply_delay = '2d' are set in warm standby servers.
> Before the switchover we had the same settings but we did not have this problem.

It is becoming increasingly obvious that you never actually performed
a switchover: it seems that you didn't promote the standby.

Either use

  pg_ctl promote -D /path/to/datadir

on the command line or

  SELECT pg_promote();

in SQL.

Yours,
Laurenz Albe





view thread (10+ messages)  latest in thread

Message-ID: <a3a4da91f3aa47d9e47802d8b274effab85202e3.camel@cybertec.at>
Permalink:  ../a3a4da91f3aa47d9e47802d8b274effab85202e3.camel@cybertec.at/
Also on:    postgresql.org/message-id/a3a4da91f3aa47d9e47802d8b274effab85202e3.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, alpaslanakdag@gmail.com
  Subject: Re: archive command doesnt work
  In-Reply-To: <a3a4da91f3aa47d9e47802d8b274effab85202e3.camel@cybertec.at>
  References: <CAHKeUX-MoL9gwrWBi=X47EZFo4kvF+d8ZZFQgc3wAOpW9gwdiA@mail.gmail.com> <410d8131f76b6c43d40a301ed0f3afa226379ca5.camel@cybertec.at> <CAHKeUX8qVZygzqru+avd+sACYGGy4R3XtK6UFqm-a3PcfkGzhw@mail.gmail.com> <a3a4da91f3aa47d9e47802d8b274effab85202e3.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