From: Tomas Vondra <tomas@vondra.me>
To: Michael Paquier <michael@paquier.xyz>
To: Tomas Vondra <tomas.vondra@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Forget the prefetcher's current record in XLogPrefetcherBeginRea
Date: Fri, 20 Nov 2026 12:17:32 +0100
Message-ID: <f5bdc734-b507-4e5f-b5f5-ab26a06609de@vondra.me> (raw)
In-Reply-To: <av_eVdzADOxQUVzO@paquier.xyz>
References: <E1xU6nR-00000000PmY-1etg@gemulon.postgresql.org>
<av_eVdzADOxQUVzO@paquier.xyz>
On 11/20/26 06:44, Michael Paquier wrote:
> On Thu, Nov 19, 2026 at 06:23:46PM +0000, Tomas Vondra wrote:
>> Forget the prefetcher's current record in XLogPrefetcherBeginRead()
>>
>> XLogPrefetcherBeginRead() reset the decoder's record queue, but not
>> prefetcher->record, whose block references XLogPrefetcherNextBlock()
>> examines. The next read then continued with the remaining block
>> references of that stale record, before decoding the record at the new
>> read position.
>
> Since this commit, the buildfarm is unstable on various branches for
> various hosts, for branches up to 17. Two examples:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=longfin&dt=2026-11-20%2005%3A13%3A08
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=indri&dt=2026-11-20%2005%3A00%3A27
>
> And here is your failure, from the logs of the standby host in test
> 061:
> 2026-11-20 00:07:37.476 EST [33350:1] LOG: invalid value for
> parameter "maintenance_io_concurrency": 1
> 2026-11-20 00:07:37.476 EST [33350:2] DETAIL:
> "maintenance_io_concurrency" must be set to 0 on platforms that lack
> posix_fadvise().
> --
Yes, this was discussed in [1]. I just pushed a fix, so that the test is
skipped on platforms without posix_fadvise (on 15-17).
thanks
[1]
https://postgr.es/m/CAHGQGwHQkzvPCd9_RdsBM_Y7iNkzDQAMm8CBgzkVAxcSp60Xow@mail.gmail.com
--
Tomas Vondra
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tomas@vondra.me, michael@paquier.xyz, tomas.vondra@postgresql.org
Subject: Re: pgsql: Forget the prefetcher's current record in XLogPrefetcherBeginRea
In-Reply-To: <f5bdc734-b507-4e5f-b5f5-ab26a06609de@vondra.me>
References: <E1xU6nR-00000000PmY-1etg@gemulon.postgresql.org> <av_eVdzADOxQUVzO@paquier.xyz> <f5bdc734-b507-4e5f-b5f5-ab26a06609de@vondra.me>
* 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