Add EXPLAIN (IO) instrumentation for SeqScan
Tomas Vondra <tomas.vondra@postgresql.org>
Author:
Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2026-04-07T21:07:03Z
Releases:
19 (unreleased)
Add EXPLAIN (IO) instrumentation for SeqScan Adds support for EXPLAIN (IO) instrumentation for sequential scans. This requires adding shared instrumentation, using the separate DSM approach introduced by dd78e69cfc33. Author: Tomas Vondra <tomas@vondra.me> Reviewed-by: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Lukas Fittl <lukas@fittl.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e%40vondra.me
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +25 −0 |
| src/backend/executor/execParallel.c | modified | +11 −0 |
| src/backend/executor/nodeSeqscan.c | modified | +124 −9 |
| src/include/executor/instrument_node.h | modified | +19 −0 |
| src/include/executor/nodeSeqscan.h | modified | +9 −0 |
| src/include/nodes/execnodes.h | modified | +1 −0 |
| src/test/regress/expected/explain.out | modified | +16 −2 |
| src/test/regress/sql/explain.sql | modified | +2 −2 |
| src/tools/pgindent/typedefs.list | modified | +2 −0 |
Discussion
Cited messages not in the archive:
flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e@vondra.me