Re: [BUG] Panic due to incorrect missingContrecPtr after promotion

Sami Imseih <simseih@amazon.com>

From: "Imseih (AWS), Sami" <simseih@amazon.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-02-23T02:58:07Z
Lists: pgsql-hackers
>    Ooh, nice find and diagnosys.  I can confirm that the test fails as you
>    described without the code fix, and doesn't fail with it.

>    I attach the same patch, with the test file put in its final place
>    rather than as a patch.  Due to recent xlog.c changes this need a bit of
>    work to apply to back branches; I'll see about getting it in all
>    branches soon.

Thank you for reviewing!

Sami


Commits

  1. Prevent WAL corruption after a standby promotion.

  2. Fix "missing continuation record" after standby promotion