Re: BUG #17375: RECOVERY TARGET TIME RESTORE IS FAILING TO START SERVER

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: B Ganesh Kishan <bkishan(at)commvault(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Meera Nair <mnair(at)commvault(dot)com>
Subject: Re: BUG #17375: RECOVERY TARGET TIME RESTORE IS FAILING TO START SERVER
Date: 2022-01-21 15:20:46
Message-ID: 1183620.1642778446@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Fri, Jan 21, 2022 at 4:20 AM B Ganesh Kishan <bkishan(at)commvault(dot)com>
> wrote:
>> The problem is that we are providing a time target that Postgres does not
>> know how to reach. This is because there are no transactions in between the
>> backups.

> I don't quite follow the overall situation but given your observation and
> apparent acceptance of the pre-v13 behavior just don't specify a restore
> point and let WAL replay everything.

Yeah. If I'm understanding the situation, when you specify a target time
that is later than the last transaction available from WAL, older versions
silently assumed that stopping with the last available transaction is OK.
Newer ones complain because it's not clear whether that's OK --- in
particular, there's no good way to be sure that no WAL is missing.

On the whole I think that's a good change. I can sympathize with the
complaint that it creates additional complexity for restore scripts,
but I'm a little dubious that this is something you'd be wanting to
script anyway.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2022-01-21 15:54:59 Re: Query on postgres_fdw extension
Previous Message David G. Johnston 2022-01-21 15:10:24 Re: BUG #17375: RECOVERY TARGET TIME RESTORE IS FAILING TO START SERVER