Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xUMce-00000000vWj-0t9T for pgsql-committers@arkaria.postgresql.org; Fri, 20 Nov 2026 11:17:40 +0000 Received: from localhost ([127.0.0.1]:53972 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xUMcd-00000008CYZ-1PVL for pgsql-committers@arkaria.postgresql.org; Fri, 20 Nov 2026 11:17:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:35996) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xUMcd-00000008CYK-0XP0 for pgsql-committers@lists.postgresql.org; Fri, 20 Nov 2026 11:17:39 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xUMcZ-00000000eh3-2mhb for pgsql-committers@lists.postgresql.org; Fri, 20 Nov 2026 11:17:38 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 78C521FD6A; Fri, 20 Nov 2026 11:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1795173454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H1DhV8ENB7Ue1OcP+FRreBXp8dOPJ6Ogfiw+rRIAdI4=; b=Y3wuHR+ROe+wABvGZuBQWEflWMd6x6Qw9pTbBAvGaQr0xbDErohKzrhYyWKQ6sKyHJk8RP Q8d5scQM+tlTzRTg6s62EE10/SHmxxSJMWqzGa7Fc8Y3ByJ4BqzqzmH4MlGwemamiXF/pL Giw9MxNPiasF+0ZoGfrtEF2lgWJd/HuG2Vl+5ESSn1LQ3ruRQ+n8FCoIdMI9CEeVbiJbMp /8hFgGlss8n0NXLuXWR71XNpp7RJOmsichugXZJQ1YxTei5a+RnT6q5GULyqgwIQ/IHRZ2 ILOKEv7IIZCXiTbjHdnwl7Hnt92vpN9cX1HL3xaHC/nC235W8o1qiTZ/xZy/aw== Message-ID: Date: Fri, 20 Nov 2026 12:17:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Forget the prefetcher's current record in XLogPrefetcherBeginRea To: Michael Paquier , Tomas Vondra Cc: pgsql-committers@lists.postgresql.org References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: tomas@vondra.me X-GND-Score: -100 X-GND-Cause: dmFkZTGZ//jfSIonOiPIcKlXi30HKqcD93JW569YAU6jOXtBEX8cJaw5xLman55ZhIIlD/56lXox7QnV4twUxu7b4Mfm2Y76eyAUrZNtG0lFGOx5WnqMZ6omcAnjgn8B4YFFCda9vDEvMtQ1/OOyKIlxtLKXNE6ZLXnPP4dBXNTNSICiai5X2ZEDJFhuERzhLMWK3C5Ieg/kZkUCOc0k2c8Bj5eiZxbD9Rb//DSwUScZEEFONLa/O7wLPY2IwM+0NHT1LzHqVHk2jf1JL+mE5WBVSxUXEnbMu6UaF211PcNpUYB+l2MB5qnDdptWGl7E544wOav1UUOQf47nwOScDADjA9QMQoP56V+1tpscLZUc+M/aGr2AJPMAMfR7KhF72+g1vIAVFRuByBTB4DrfNR6qwRmGpA2vKTHDECx0M+Ah2e+8Syxtg7hfvptA5b2z+UPSbDEk7LzWSzmft3+Tj2XvVfQbqJIZIWg+4ECiyRKHqyW5/Vdg/j9XsKJbfsLKVNmme5oyfxDTfq2ZkijIUv+/7wc6mcVGXyR1jgCflNzGrpTJn8zT6PIEa0qr89in4sdlIFY97o7eMGeCtC4/jWXc/snwaFv6NzuksDztcEYhTp/tMnQYxtej8lkpI9HQ+Ahaf9J6Aivm4IDtLQOUqYbqebfddsu+iE2JSg3uyEpsvEjS0A X-GND-State: clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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