pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: [External] Re: WAL Replication query
Date: Tue, 01 Nov 2022 14:56:30 +0100
Message-ID: <cff94aa50765b00e798d15a5419830c82f8049ec.camel@cybertec.at> (raw)
In-Reply-To: <42306ea2-74c2-a95e-551d-e1d16946c083@gmail.com>
References: <CAKgGyB-SMT0RxeoifAfjkRx6RHEOgpn7sf8F_zD1DPsKydTu=w@mail.gmail.com>
	<88faef33e966796226022d6e7f3e32ad6c59fcfd.camel@cybertec.at>
	<MW4PR20MB4525ED0222DDE9FED0519D8FF3369@MW4PR20MB4525.namprd20.prod.outlook.com>
	<c1b6b89d6b89706acaeca9b4d45958f4739c4f28.camel@cybertec.at>
	<8f9e6c92-4daa-a543-6825-05a3503f4296@gmail.com>
	<f78c361061449be8402922cd5ed7f5782f65aab1.camel@cybertec.at>
	<42306ea2-74c2-a95e-551d-e1d16946c083@gmail.com>

On Tue, 2022-11-01 at 08:49 -0500, Ron wrote:
> Primary has crashed, according to OP; it's not coming back any time soon.  And thus you promote
> Secondary to be New Primary, and go about  your work.  When the Old Primary comes back up
> (hours or days later), you do a pg_basebackup to make it the New Secondary.

There was no word about failover or "not coming back any time soon" (that's why I asked for
clarification in my answer).  In fact, PostgreSQL will often undergo crash recovery and come
back up automatically.  See the parameter "restart_after_crash", which defaults to "on".

Yours,
Laurenz Albe





view thread (15+ messages)  latest in thread

Message-ID: <cff94aa50765b00e798d15a5419830c82f8049ec.camel@cybertec.at>
Permalink:  ../cff94aa50765b00e798d15a5419830c82f8049ec.camel@cybertec.at/
Also on:    postgresql.org/message-id/cff94aa50765b00e798d15a5419830c82f8049ec.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: [External] Re: WAL Replication query
  In-Reply-To: <cff94aa50765b00e798d15a5419830c82f8049ec.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