postgresql/src/backend
David Rowley f9bc34fcb6 Further refactor of heapgettup and heapgettup_pagemode
Backward and forward scans share much of the same page acquisition code.
Here we consolidate that code to reduce some duplication.

Additionally, add a new rs_coffset field to HeapScanDescData to track the
offset of the current tuple.  The new field fits nicely into the padding
between a bool and BlockNumber field and saves having to look at the last
returned tuple to figure out which offset we should be looking at for the
current tuple.

Author: Melanie Plageman
Reviewed-by: David Rowley
Discussion: https://postgr.es/m/CAAKRu_bvkhka0CZQun28KTqhuUh5ZqY=_T8QEqZqOL02rpi2bw@mail.gmail.com
2023-02-03 11:48:39 +13:00
..
access Further refactor of heapgettup and heapgettup_pagemode 2023-02-03 11:48:39 +13:00
backup Improve TimestampDifferenceMilliseconds to cope with overflow sanely. 2023-01-26 17:09:12 -05:00
bootstrap Update copyright for 2023 2023-01-02 15:00:37 -05:00
catalog Allow REPLICA IDENTITY to be set on an index that's not (yet) valid. 2023-01-21 13:10:29 -05:00
commands Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
executor Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
foreign Update copyright for 2023 2023-01-02 15:00:37 -05:00
jit Fix typos in comments, code and documentation 2023-01-03 16:26:14 +09:00
lib Fix ILIST_DEBUG build 2023-01-18 10:26:15 -08:00
libpq Support the same patterns for pg-user in pg_ident.conf as in pg_hba.conf 2023-01-20 11:21:55 +09:00
main Update copyright for 2023 2023-01-02 15:00:37 -05:00
nodes Generate code for query jumbling through gen_node_support.pl 2023-01-31 15:24:05 +09:00
optimizer Remove dead NoMovementScanDirection code 2023-02-01 10:52:41 +13:00
parser Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
partitioning Update copyright for 2023 2023-01-02 15:00:37 -05:00
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
port Update copyright for 2023 2023-01-02 15:00:37 -05:00
postmaster Retire PG_SETMASK() macro. 2023-02-03 11:29:46 +13:00
regex Update copyright for 2023 2023-01-02 15:00:37 -05:00
replication Retire PG_SETMASK() macro. 2023-02-03 11:29:46 +13:00
rewrite Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
snowball Update copyright for 2023 2023-01-02 15:00:37 -05:00
statistics Update copyright for 2023 2023-01-02 15:00:37 -05:00
storage Avoid type cheats for invalid dsa_handles and dshash_table_handles. 2023-01-25 11:48:38 -05:00
tcop Retire PG_SETMASK() macro. 2023-02-03 11:29:46 +13:00
tsearch Fix ts_headline() to handle ORs and phrase queries more honestly. 2023-01-19 16:21:44 -05:00
utils Retire PG_SETMASK() macro. 2023-02-03 11:29:46 +13:00
.gitignore
Makefile Don't install postmaster symlink anymore 2023-01-26 11:33:01 +01:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00