diff options
Diffstat (limited to 'src/backend/catalog/index.c')
-rw-r--r-- | src/backend/catalog/index.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index c81f14a4f13..00eccbac622 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.46 1998/07/20 19:21:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.47 1998/07/27 19:37:47 vadim Exp $ * * * INTERFACE ROUTINES @@ -180,7 +180,7 @@ RelationNameGetObjectId(char *relationName, F_NAMEEQ, PointerGetDatum(relationName)); - pg_class_scan = heap_beginscan(pg_class, 0, false, 1, &key); + pg_class_scan = heap_beginscan(pg_class, 0, SnapshotNow, 1, &key); /* ---------------- * if we find the named relation, fetch its relation id @@ -506,7 +506,7 @@ AccessMethodObjectIdGetAccessMethodTupleForm(Oid accessMethodObjectId) * ---------------- */ pg_am_desc = heap_openr(AccessMethodRelationName); - pg_am_scan = heap_beginscan(pg_am_desc, 0, false, 1, &key); + pg_am_scan = heap_beginscan(pg_am_desc, 0, SnapshotNow, 1, &key); pg_am_tuple = heap_getnext(pg_am_scan, 0, (Buffer *) NULL); @@ -945,7 +945,7 @@ UpdateIndexPredicate(Oid indexoid, Node *oldPred, Node *predicate) F_OIDEQ, ObjectIdGetDatum(indexoid)); - scan = heap_beginscan(pg_index, 0, false, 1, &entry); + scan = heap_beginscan(pg_index, 0, SnapshotNow, 1, &entry); tuple = heap_getnext(scan, 0, &buffer); heap_endscan(scan); @@ -1238,7 +1238,7 @@ index_destroy(Oid indexId) F_OIDEQ, ObjectIdGetDatum(indexId));; - scan = heap_beginscan(catalogRelation, 0, false, 1, &entry); + scan = heap_beginscan(catalogRelation, 0, SnapshotNow, 1, &entry); tuple = heap_getnext(scan, 0, (Buffer *) NULL); AssertState(HeapTupleIsValid(tuple)); @@ -1255,7 +1255,7 @@ index_destroy(Oid indexId) entry.sk_attno = Anum_pg_attribute_attrelid; - scan = heap_beginscan(catalogRelation, 0, false, 1, &entry); + scan = heap_beginscan(catalogRelation, 0, SnapshotNow, 1, &entry); while (tuple = heap_getnext(scan, 0, (Buffer *) NULL), HeapTupleIsValid(tuple)) @@ -1271,7 +1271,7 @@ index_destroy(Oid indexId) entry.sk_attno = Anum_pg_index_indexrelid; - scan = heap_beginscan(catalogRelation, 0, false, 1, &entry); + scan = heap_beginscan(catalogRelation, 0, SnapshotNow, 1, &entry); tuple = heap_getnext(scan, 0, (Buffer *) NULL); if (!HeapTupleIsValid(tuple)) { @@ -1402,7 +1402,7 @@ UpdateStats(Oid relid, long reltuples, bool hasindex) key[0].sk_argument = ObjectIdGetDatum(relid); pg_class_scan = - heap_beginscan(pg_class, 0, false, 1, key); + heap_beginscan(pg_class, 0, SnapshotNow, 1, key); if (!HeapScanIsValid(pg_class_scan)) { @@ -1598,7 +1598,7 @@ DefaultBuild(Relation heapRelation, */ scan = heap_beginscan(heapRelation, /* relation */ 0, /* start at end */ - false,/* seeself */ + SnapshotNow,/* seeself */ 0, /* number of keys */ (ScanKey) NULL); /* scan key */ @@ -1812,7 +1812,7 @@ IndexIsUniqueNoCache(Oid indexId) (RegProcedure) F_OIDEQ, ObjectIdGetDatum(indexId)); - scandesc = heap_beginscan(pg_index, 0, true, 1, skey); + scandesc = heap_beginscan(pg_index, 0, SnapshotSelf, 1, skey); tuple = heap_getnext(scandesc, 0, NULL); if (!HeapTupleIsValid(tuple)) |