diff options
author | Thomas Munro <tmunro@postgresql.org> | 2023-09-08 17:12:12 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2023-09-08 17:12:12 +1200 |
commit | 9f0602539db4573b89c09abab666e85b653940bd (patch) | |
tree | 72a9620e3fabfbb03e82fb3c84753522e4787153 /src/backend/access/spgist | |
parent | e722846daf4a37797ee39bc8ca3e78a4ef437f51 (diff) | |
download | postgresql-9f0602539db4573b89c09abab666e85b653940bd.tar.gz postgresql-9f0602539db4573b89c09abab666e85b653940bd.zip |
Remove some more "snapshot too old" vestiges.
Commit f691f5b8 removed the logic, but left behind some now-useless
Snapshot arguments to various AM-internal functions, and missed a couple
of comments.
Reported-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-Wznj9qSNXZ1P1uWTUD_FeaTezbUazb416EPwi4Qr_jR_6A%40mail.gmail.com
Diffstat (limited to 'src/backend/access/spgist')
-rw-r--r-- | src/backend/access/spgist/spgscan.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/access/spgist/spgscan.c b/src/backend/access/spgist/spgscan.c index 17cab0087fe..8c00b724db2 100644 --- a/src/backend/access/spgist/spgscan.c +++ b/src/backend/access/spgist/spgscan.c @@ -815,7 +815,7 @@ spgTestLeafTuple(SpGistScanOpaque so, */ static void spgWalk(Relation index, SpGistScanOpaque so, bool scanWholeIndex, - storeRes_func storeRes, Snapshot snapshot) + storeRes_func storeRes) { Buffer buffer = InvalidBuffer; bool reportedSome = false; @@ -949,7 +949,7 @@ spggetbitmap(IndexScanDesc scan, TIDBitmap *tbm) so->tbm = tbm; so->ntids = 0; - spgWalk(scan->indexRelation, so, true, storeBitmap, scan->xs_snapshot); + spgWalk(scan->indexRelation, so, true, storeBitmap); return so->ntids; } @@ -1070,8 +1070,7 @@ spggettuple(IndexScanDesc scan, ScanDirection dir) } so->iPtr = so->nPtrs = 0; - spgWalk(scan->indexRelation, so, false, storeGettuple, - scan->xs_snapshot); + spgWalk(scan->indexRelation, so, false, storeGettuple); if (so->nPtrs == 0) break; /* must have completed scan */ |