Re: Report buffer access strategies in EXPLAIN

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: Sami Imseih <samimseih(dot)pg(at)gmail(dot)com>, Lukas Fittl <lukas(at)fittl(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Report buffer access strategies in EXPLAIN
Date: 2026-11-24 06:58:34
Message-ID: awU1mgBBoJg0TW02@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 20, 2026 at 10:37:24AM +0000, Bertrand Drouvot wrote:
> Done as suggested in v7 attached.

Two blips in 0001.

+to shared buffer cache efficient. Larger rings may retain this benefit on
+systems with larger L2 caches. Even less would often be enough, but the target

Is that actually always true in the second sentence? I am not
entirely sure so I've just removed it. That does not impact the fix
in itself.

-COPY IN and CREATE TABLE AS SELECT. (Might it be interesting to make
-seqscan UPDATE and DELETE use the bulkwrite strategy?)

I don't think that this note should be removed. So kept it, then
applied 0001 on HEAD.

Regarding 0002.

- <firstterm>Buffer Access Strategy</firstterm> helps to prevent these
- operations from evicting too many pages from

This removal of <firstterm> goes a step backward. The existing
paragraph feels fine.

+ data checksums online. Its size can be controlled with
+ <xref linkend="guc-vacuum-buffer-usage-limit"/>.

This sentence implied that the GUC also impacts online checksums, but
it is not the case. Reworded it to mention VACUUM and ANALYZE.

The lists have been slimmed down a list for each item. Like the
previous list in the README, it seems that this would rot easily
depending on how this stuff expands in the core code. Let's keep it
simpler; I have added some examples instead. And applied 0002 as
well, with these simplifications.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-11-24 07:01:15 Re: Injection point: fix race condition between attach and cleanup
Previous Message Nisha Moond 2026-11-24 06:57:28 Re: unidirectional logical replication logging issue