diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-07-27 19:38:40 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-07-27 19:38:40 +0000 |
commit | be8300b18f26363c0b18c62fa884a6a62e26405e (patch) | |
tree | a44ac3f51d81a7616bd9c7912fa23a5e81c9d483 /src/backend/access/index/istrat.c | |
parent | f7f989c9907b181f1785c699e6384e6eba8ae9a5 (diff) | |
download | postgresql-be8300b18f26363c0b18c62fa884a6a62e26405e.tar.gz postgresql-be8300b18f26363c0b18c62fa884a6a62e26405e.zip |
Use Snapshot in heap access methods.
Diffstat (limited to 'src/backend/access/index/istrat.c')
-rw-r--r-- | src/backend/access/index/istrat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/index/istrat.c b/src/backend/access/index/istrat.c index b0b0cdc452d..5b940ba1155 100644 --- a/src/backend/access/index/istrat.c +++ b/src/backend/access/index/istrat.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.20 1998/06/15 19:27:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.21 1998/07/27 19:37:37 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -501,7 +501,7 @@ OperatorRelationFillScanKeyEntry(Relation operatorRelation, F_OIDEQ, ObjectIdGetDatum(operatorObjectId)); - scan = heap_beginscan(operatorRelation, false, false, + scan = heap_beginscan(operatorRelation, false, SnapshotNow, 1, &scanKeyData); tuple = heap_getnext(scan, false, (Buffer *) NULL); @@ -558,7 +558,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy, ObjectIdGetDatum(indexObjectId)); relation = heap_openr(IndexRelationName); - scan = heap_beginscan(relation, false, false, 1, entry); + scan = heap_beginscan(relation, false, SnapshotNow, 1, entry); tuple = heap_getnext(scan, 0, (Buffer *) NULL); if (!HeapTupleIsValid(tuple)) elog(ERROR, "IndexSupportInitialize: corrupted catalogs"); @@ -618,7 +618,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy, entry[1].sk_argument = ObjectIdGetDatum(operatorClassObjectId[attributeNumber - 1]); - scan = heap_beginscan(relation, false, false, 2, entry); + scan = heap_beginscan(relation, false, SnapshotNow, 2, entry); while (tuple = heap_getnext(scan, 0, (Buffer *) NULL), HeapTupleIsValid(tuple)) @@ -661,7 +661,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy, for (strategy = 1; strategy <= maxStrategyNumber; strategy++) ScanKeyEntrySetIllegal(StrategyMapGetScanKeyEntry(map, strategy)); - scan = heap_beginscan(relation, false, false, 2, entry); + scan = heap_beginscan(relation, false, SnapshotNow, 2, entry); while (tuple = heap_getnext(scan, 0, (Buffer *) NULL), HeapTupleIsValid(tuple)) |