Re: Postgresql Database cant start after restore using pgBackRest

From: David Steele <david(at)pgmasters(dot)net>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Postgresql Database cant start after restore using pgBackRest
Date: 2023-06-27 14:46:08
Message-ID: 634ceaf1-abb1-8bcc-f7a4-bb407f468a25@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 6/27/23 12:12, Ron wrote:
> On 6/27/23 03:26, David Steele wrote:
>> On 6/27/23 07:41, Deo Felix wrote:
>>> In the postgresql.auto.conf i have this configs
>>> restore_command = 'pgbackrest --pg1-path=/var/lib/postgres/main
>>> --stanza=data archive-get %f "%p"'
>>> recovery_target = 'immediate'
>>> recovery_target_timeline = 'current'
>>>
>>> But still I the database cant start
>>
>> You will need to redo your pgbackrest restore with
>> --target-timeline=current and then restart postgres to start recovery
>> with the correct settings.
>
> Is this standard procedure for an "in place" --delta restore?

No -- this is mitigation for the split-brain situation which was causing
the OP's recovery error.

Regards,
-David

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Deo Felix 2023-06-28 12:27:37 Re: Postgresql Database cant start after restore using pgBackRest
Previous Message Jeff Janes 2023-06-27 11:49:32 Re: Why log_statement may not work for a particular database?