Remove PlannedStmt->resultRelations in favor of resultRelationRelids
Melanie Plageman <melanieplageman@gmail.com>
Author:
Melanie Plageman <melanieplageman@gmail.com>
Date: 2026-03-30T13:51:28Z
Releases:
19 (unreleased)
Remove PlannedStmt->resultRelations in favor of resultRelationRelids PlannedStmt->resultRelations was an integer list of range table indexes because at the time it was added (to Query), the Bitmapset data type did not yet exist in Postgres. 0f4c170cf3b added a Bitmapset of result relations, so remove the integer list of RTIs and use the more compact resultRelationRelids. Discussion: https://postgr.es/m/CAApHDvqAOeOwCKh9g0gfxWa040%3DHyc7_oA%3DC59rjod8kXJDWyw%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_overexplain/pg_overexplain.c | modified | +3 −2 |
| src/backend/executor/execParallel.c | modified | +0 −1 |
| src/backend/executor/execUtils.c | modified | +1 −1 |
| src/backend/optimizer/plan/planner.c | modified | +0 −1 |
| src/include/nodes/plannodes.h | modified | +0 −4 |
Discussion
- eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) 168 messages · 2025-06-23 → 2026-04-21