From 44fbe20d620d4f2e39aaa9896de4683e55b0d317 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 20 May 2002 23:51:44 +0000 Subject: Restructure indexscan API (index_beginscan, index_getnext) per yesterday's proposal to pghackers. Also remove unnecessary parameters to heap_beginscan, heap_rescan. I modified pg_proc.h to reflect the new numbers of parameters for the AM interface routines, but did not force an initdb because nothing actually looks at those fields. --- contrib/dblink/dblink.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'contrib/dblink/dblink.c') diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 68fd2a797e..8201f8815a 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -922,10 +922,9 @@ get_pkey_attnames(Oid relid, int16 *numatts) indexRelation = heap_openr(IndexRelationName, AccessShareLock); ScanKeyEntryInitialize(&entry, 0, Anum_pg_index_indrelid, F_OIDEQ, ObjectIdGetDatum(relid)); - scan = heap_beginscan(indexRelation, false, SnapshotNow, - 1, &entry); + scan = heap_beginscan(indexRelation, SnapshotNow, 1, &entry); - while (HeapTupleIsValid(indexTuple = heap_getnext(scan, 0))) + while ((indexTuple = heap_getnext(scan, ForwardScanDirection)) != NULL) { Form_pg_index index = (Form_pg_index) GETSTRUCT(indexTuple); -- cgit v1.2.1