aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2023-02-03 11:48:39 +1300
committerDavid Rowley <drowley@postgresql.org>2023-02-03 11:48:39 +1300
commitf9bc34fcb664e93d1fa3c3873527dce6f4cc495f (patch)
tree4bddf8f7bc15439b0109450b65e50a33ea2c44f2 /src/backend/access/gist/gistbuild.c
parentcdf6518ef08ee602b94db4e5ba5887a1d7053c24 (diff)
downloadpostgresql-f9bc34fcb664e93d1fa3c3873527dce6f4cc495f.tar.gz
postgresql-f9bc34fcb664e93d1fa3c3873527dce6f4cc495f.zip
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
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions