Re: Stack-based tracking of per-node WAL/buffer usage

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Lukas Fittl <lukas@fittl.com>, Andres Freund <andres@anarazel.de>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Zsolt Parragi <zsolt.parragi@percona.com>, Tomas Vondra <tomas@vondra.me>, Peter Smith <smithpb2250@gmail.com>
Date: 2026-04-05T18:22:25Z
Lists: pgsql-hackers
On 05/04/2026 15:31, Lukas Fittl wrote:
> Heikki, your further review is very welcome, if you have the time.
> It'd also be great if you could review the README.instrument (now in
> v13/0008) to see if that makes sense to you.

I don't have very substantial comments to make, an haven't had a chance 
to review the latest patch, but I did read your replies. I think I 
understand the stack vs. tree model now and why it is the way it is, but 
I still find it pretty confusing and I don't know what to about it.

- Heikki




Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. instrumentation: Allocate query level instrumentation in ExecutorStart

  2. instrumentation: Move ExecProcNodeInstr to allow inlining

  3. instrumentation: Separate per-node logic from other uses

  4. instrumentation: Separate trigger logic from other uses

  5. instrumentation: Rename INSTR_TIME_LT macro to INSTR_TIME_GT

  6. instrumentation: Keep time fields as instrtime, convert in callers