agora inbox for pgsql-bugs@postgresql.org
help / color / mirror / Atom feedFrom: rahul@rhyadav.dev
To: shihao zhong <zhong950419@gmail.com>
Cc: Kirill Reshke <reshkekirill@gmail.com>
Cc: Nktpro <nktpro@gmail.com>
Cc: Pgsql Bugs <pgsql-bugs@lists.postgresql.org>
Cc: Melanie Plageman <melanieplageman@gmail.com>
Subject: Re: PostgreSQL 18.6/17.11: standby PANIC on restart after VM truncation
Date: Fri, 2 Oct 2026 09:00:13 +0200 (CEST)
Message-ID: <P2v9EE4--F-9@rhyadav.dev> (raw)
In-Reply-To: <CAGRkXqSZXoazu1x48pz2SuW_xHYQDdRcbp2HNCfRNm_WLF8aYA@mail.gmail.com-P2v1i8Y----9>
References: <CAL4mQLAp562c1rCgg2Dqx6TBSdOk6vOvaLFjwFG9E6k4uwvJJw@mail.gmail.com>
<CALdSSPjEM90Y_6RQGox7OFJC+oAurWy5YSuXaH8Mr7m-TMOyWA@mail.gmail.com>
<CAGRkXqRZva+Wiw6jb9-owhLjGOtoDn-btoFjJmejmJYOMSEbzg@mail.gmail.com>
<P2s-NV0--F-9@rhyadav.dev>
<CAGRkXqSZXoazu1x48pz2SuW_xHYQDdRcbp2HNCfRNm_WLF8aYA@mail.gmail.com-P2v1i8Y----9>
Hi Shihao,
On Fri, 2 Oct 2026, shihao zhong wrote:
> 0002 is your diff. It had no commit message, so I put one together
> from your mail. Please correct it if it is wrong.
Thanks for putting v3 together. The message is right for master and
19. On 17 and 18 the function that already does this is
heap_xlog_visible(), so in those versions the sentence would be:
heap_xlog_visible() already initializes a VM page that was read as
zeros.
0002 could also carry the same "Backpatch-through: 17" as 0001.
I ran my reproducer, which follows the same steps as 0003, against v3
on master and the nocfbot versions on 19, 18 and 17. Unpatched
master and 17 fail to restart with the invalid pages PANIC. With v3
the standby restarts cleanly on all four branches, in each of these
setups:
- full_page_writes = off
- full_page_writes = off, wal_consistency_checking = all
- full_page_writes = on, wal_consistency_checking = all
0003 itself passes here too on all four branches, and fails on
master without 0001 and 0002.
Regards,
Rahul Yadav
view thread (7+ messages) latest in thread
Message-ID: <P2v9EE4--F-9@rhyadav.dev>
Permalink: ../P2v9EE4--F-9@rhyadav.dev/
Also on: postgresql.org/message-id/P2v9EE4--F-9@rhyadav.dev
reply
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: rahul@rhyadav.dev, zhong950419@gmail.com, reshkekirill@gmail.com, nktpro@gmail.com, pgsql-bugs@lists.postgresql.org, melanieplageman@gmail.com
Subject: Re: PostgreSQL 18.6/17.11: standby PANIC on restart after VM truncation
In-Reply-To: <P2v9EE4--F-9@rhyadav.dev>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox