postgresql/src/backend/access
David Rowley e9aaf06328 Remove dead NoMovementScanDirection code
Here remove some dead code from heapgettup() and heapgettup_pagemode()
which was trying to support NoMovementScanDirection scans.  This code can
never be reached as standard_ExecutorRun() never calls ExecutePlan with
NoMovementScanDirection.

Additionally, plans which were scanning an unordered index would use
NoMovementScanDirection rather than ForwardScanDirection.  There was no
real need for this, so here we adjust this so we use ForwardScanDirection
for unordered index scans.  A comment in pathnodes.h claimed that
NoMovementScanDirection was used for PathKey reasons, but if that was
true, it no longer is, per code in build_index_paths().

This does change the non-text format of the EXPLAIN output so that
unordered index scans now have a "Forward" scan direction rather than
"NoMovement".  The text format of EXPLAIN has not changed.

Author: Melanie Plageman
Reviewed-by: Tom Lane, David Rowley
Discussion: https://postgr.es/m/CAAKRu_bvkhka0CZQun28KTqhuUh5ZqY=_T8QEqZqOL02rpi2bw@mail.gmail.com
2023-02-01 10:52:41 +13:00
..
brin Update copyright for 2023 2023-01-02 15:00:37 -05:00
common Revert "Add eager and lazy freezing strategies to VACUUM." 2023-01-25 22:22:27 -08:00
gin Update copyright for 2023 2023-01-02 15:00:37 -05:00
gist Add BufFileRead variants with short read and EOF detection 2023-01-16 11:01:31 +01:00
hash New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
heap Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
index Update copyright for 2023 2023-01-02 15:00:37 -05:00
nbtree Update copyright for 2023 2023-01-02 15:00:37 -05:00
rmgrdesc Update copyright for 2023 2023-01-02 15:00:37 -05:00
spgist New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
table New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tablesample Update copyright for 2023 2023-01-02 15:00:37 -05:00
transam Update more obsolete multixact.c comments. 2023-01-24 15:15:33 -08:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00