pgsql: Remove PlannedStmt->resultRelations in favor of resultRelationRe - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Remove PlannedStmt->resultRelations in favor of resultRelationRe
Date
Msg-id E1w7D3c-0029mV-2n@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39dcd10a2c493821cc88a9f8d17677507571e87d

Modified Files
--------------
contrib/pg_overexplain/pg_overexplain.c | 5 +++--
src/backend/executor/execParallel.c     | 1 -
src/backend/executor/execUtils.c        | 2 +-
src/backend/optimizer/plan/planner.c    | 1 -
src/include/nodes/plannodes.h           | 4 ----
5 files changed, 4 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Make it cheap to check if a relation is modified by a query
Next
From: Robert Haas
Date:
Subject: pgsql: pg_plan_advice: Avoid assertion failure with partitionwise aggre