Re: Unable to start replica after failover

From: Alexander Kukushkin <cyberdemn(at)gmail(dot)com>
To: "Lahnov, Igor" <Igor(dot)Lahnov(at)nexign(dot)com>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>, "Timonin, Alexey" <Alexey(dot)Timonin(at)nexign(dot)com>, "Dmitriyev, Andrey" <Andrey(dot)Dmitriyev(at)nexign(dot)com>, "Vassiliev, Andrey" <Andrey(dot)Vassiliev(at)nexign(dot)com>
Subject: Re: Unable to start replica after failover
Date: 2022-08-30 09:04:51
Message-ID: CAFh8B=mPc_a_W4c7PjF4+E4E5Prb9=gq1FjAEHozvxVbMb=d-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Igor,

On Fri, 26 Aug 2022 at 13:43, Lahnov, Igor <Igor(dot)Lahnov(at)nexign(dot)com> wrote:

> I can't answer your question. What do you think, the recovery from the
> archive should work in this case?
>
> 1. the partial file should not be restored at all cases
>
> 2. the partial file should recover as a partial and replace the local
> partial
>
> 3. recovery command, should return a conflict - file already exists
>

The partial file should never be restored automatically.
I have no clue why pg_probackup developers decided to do it.
Postgres never requests the partial file using the restore_command,
instead, it requests a file from the next timeline.

Regards,
--
Alexander Kukushkin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matheus Martin 2022-08-30 10:38:04 Missing query plan for auto_explain.
Previous Message Meera Nair 2022-08-30 05:22:56 RE: Unable to archive logs in standby server