]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Allocate separate DSM chunk for parallel Index[Only]Scan instrumentation
authorMelanie Plageman <melanieplageman@gmail.com>
Mon, 6 Apr 2026 23:10:19 +0000 (19:10 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Mon, 6 Apr 2026 23:10:19 +0000 (19:10 -0400)
commitdd78e69cfc337f93cfc0303ddf660262d7f1237e
treec252699a750e038a7cabe441cf521c3aa1deaca2
parent43222b8e53f49f2cf0849947a02c6fbd74899332
Allocate separate DSM chunk for parallel Index[Only]Scan instrumentation

Previously, parallel index and index-only scans packed the parallel scan
descriptor and shared instrumentation (for EXPLAIN ANALYZE) into a
single DSM allocation. Since scans may be instrumented without being
parallel-aware, and vice versa, using separate DSM chunks -- each with
its own TOC key -- is cleaner. A future commit will extend this pattern
to other scan node types.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e%40vondra.me
src/backend/access/index/indexam.c
src/backend/executor/execParallel.c
src/backend/executor/nodeBitmapIndexscan.c
src/backend/executor/nodeIndexonlyscan.c
src/backend/executor/nodeIndexscan.c
src/include/access/genam.h
src/include/access/relscan.h
src/include/executor/instrument_node.h
src/include/executor/nodeIndexonlyscan.h
src/include/executor/nodeIndexscan.h