From: David Steele <david@pgmasters.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: Антон Курочкин <antkurochkin@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16894: PANIC: WAL contains references to invalid pages
Date: Tue, 2 Mar 2021 07:46:21 -0500
Message-ID: <11b70b37-997e-8a2d-62f3-0f8398b7cafd@pgmasters.net> (raw)
In-Reply-To: <YDxuCMyEeLofajLi@paquier.xyz>
References: <16894-c29735df12727642@postgresql.org>
<CABPPpF3mym72xDOyvvfBb4e-rV1Z2Qdip7qQSf2axdnuj-sv=Q@mail.gmail.com>
<fd63fe44-7858-5b0a-1709-b9a2da11e36c@pgmasters.net>
<YDxuCMyEeLofajLi@paquier.xyz>
Hi Michael,
On 2/28/21 11:31 PM, Michael Paquier wrote:
> On Thu, Feb 25, 2021 at 12:53:44PM -0500, David Steele wrote:
>> For context, when a user performs selective restore all the relations for
>> databases *not* selected are restored as sparse zero files with the correct
>> size. WAL replay will update those relations but they are not expected to
>> be consistent, and in fact we make it impossible to logon to those databases
>> so the only option is to drop them.
>
> What is a selective restore? Is that a pgbackrest restore mode from a
> full physical backup where only a portion of the database folders are
> physically put back into the data folder restored before doing WAL
> replay up to the consistent point of the full physical backup? Then,
> you emulate the absence of the files from the other database folders
> using files full of zeros but with the same size as the original
> backup to trick WAL replay?
That summarizes the process very well.
My concern here is that we appear to have a partial page write as the
first write to a page after the backup start checkpoint. At least,
that's what this error seems to be indicating from my reading of the code.
The question is -- are there valid circumstances under which this might
be happening or is it a bug?
I have not submitted a bug before this because I am not able to
reproduce it in a test environment, but perhaps somebody can weigh in on
whether this behavior seems normal.
Regards,
--
-David
david@pgmasters.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: david@pgmasters.net, michael@paquier.xyz, antkurochkin@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16894: PANIC: WAL contains references to invalid pages
In-Reply-To: <11b70b37-997e-8a2d-62f3-0f8398b7cafd@pgmasters.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox