Re: Infinite loop in XLogPageRead() on standby

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Alexander Kukushkin <cyberdemn@gmail.com>
Cc: Ants Aasma <ants.aasma@cybertec.at>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, pgsql-hackers@postgresql.org, thomas.munro@gmail.com
Date: 2025-01-20T01:24:35Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix header check for continuation records where standbys could be stuck

  2. Move routines to manipulate WAL into PostgreSQL::Test::Cluster

  3. Prevent archive recovery from scanning non-existent WAL files.

  4. Fix scenario where streaming standby gets stuck at a continuation record.

On Thu, Jan 16, 2025 at 09:42:49AM +0900, Michael Paquier wrote:
> I've applied the first refactoring bits down to v13 (see for example a
> s/emit_message/emit_wal/ tweaked for consistency, with more comment
> tweaks).  Attached are patches for each branch for the bug fix, that
> I'm still testing and looking at more.  The readability of
> 043_no_contrecord_switch.pl looks rather OK here.

And done this as well.  The buildfarm looks OK with it for the moment.
I'll keep an eye on things, including the CF bot.
--
Michael