pgsql: Remove EState.es_range_table_array.

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

pgsql: Remove EState.es_range_table_array.

Tom Lane-2
Remove EState.es_range_table_array.

Now that list_nth is O(1), there's no good reason to maintain a
separate array of RTE pointers rather than indexing into
estate->es_range_table.  Deleting the array doesn't save all that
much either; but just on cleanliness grounds, it's better not to
have duplicate representations of the identical information.




Modified Files
src/backend/executor/execMain.c  |  1 -
src/backend/executor/execUtils.c | 23 +++++------------------
src/include/executor/executor.h  |  3 +--
src/include/nodes/execnodes.h    |  1 -
4 files changed, 6 insertions(+), 22 deletions(-)