Re: [External] Re: WAL Replication query

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Ron <ronljohnsonjr(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: [External] Re: WAL Replication query
Date: 2022-11-01 13:56:30
Message-ID: cff94aa50765b00e798d15a5419830c82f8049ec.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2022-11-01 14:06:24 Re: [External] Re: WAL Replication query
Previous Message Scott Ribe 2022-11-01 13:51:57 Re: [External] WAL Replication query