From cefcbbf1fd43c80201e8e6fd36ac6fb00bd10825 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 7 Dec 2005 19:37:53 +0000 Subject: Push the responsibility for handling ignore_killed_tuples down into _bt_checkkeys(), instead of checking it in the top-level nbtree.c routines as formerly. This saves a little bit of loop overhead, but more importantly it lets us skip performing the index key comparisons for dead tuples. --- src/include/access/nbtree.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/include/access/nbtree.h') diff --git a/src/include/access/nbtree.h b/src/include/access/nbtree.h index 9cd00d554da..5a3ec5f1efe 100644 --- a/src/include/access/nbtree.h +++ b/src/include/access/nbtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/nbtree.h,v 1.88 2005/11/06 19:29:01 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/nbtree.h,v 1.89 2005/12/07 19:37:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -467,8 +467,9 @@ extern ScanKey _bt_mkscankey_nodata(Relation rel); extern void _bt_freeskey(ScanKey skey); extern void _bt_freestack(BTStack stack); extern void _bt_preprocess_keys(IndexScanDesc scan); -extern bool _bt_checkkeys(IndexScanDesc scan, IndexTuple tuple, - ScanDirection dir, bool *continuescan); +extern bool _bt_checkkeys(IndexScanDesc scan, + Page page, OffsetNumber offnum, + ScanDirection dir, bool *continuescan); extern BTItem _bt_formitem(IndexTuple itup); /* -- cgit v1.2.3