Re: Promote replica before being able to accept connections

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Martín Fernández <fmartin91(at)gmail(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Promote replica before being able to accept connections
Date: 2019-02-12 03:17:33
Message-ID: 20190212031733.GG1475@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 11, 2019 at 06:59:27AM -0800, Martín Fernández wrote:
> That makes sense!
>
> Thanks for the quick reply

Note that PostgreSQL 9.4 has introduced a new parameter in
recovery.conf that allows recovery to finish exactly when a consistent
state has been reached:
recovery_target = 'immediate'

So that's basically what you are looking for. Now you are on 9.2, and
new features are not back-ported.
--
Michael

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2019-02-12 03:24:32 Re: Server goes to Recovery Mode when run a SQL
Previous Message Arjun Ranade 2019-02-12 00:44:17 pg_dump on a standby for a very active master