Remove unused field from PartitionDescData struct 3592e0ff9 added caching logic to ExecFindPartition() to allow faster partition lookups for LIST and RANGE partitions when we hit the same partition multiple times in a row. The last_found_part_index field was added, but it was never used, so remove it. Caching works by caching the last matching index into the PartitionBoundInfo.datums, not by caching the last found partition index.
Update comments to reflect this, and perform other general improvements to the comments in this area. Author: Aleksander Alekseev <[email protected]> Author: David Rowley <[email protected]> Discussion: https://postgr.es/m/caj7c6tmrxo6vo1tnglzs4ntnizpjcswduvib8mf3nkyinhn...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5ea1022e4a987b6cffe4ca6014fd1389b3311f88 Modified Files -------------- src/backend/executor/execPartition.c | 67 +++++++++++++++++++----------------- src/backend/partitioning/partdesc.c | 1 - src/include/partitioning/partdesc.h | 8 +---- 3 files changed, 36 insertions(+), 40 deletions(-)
