|
|
@ -7,29 +7,25 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
* |
|
|
|
* |
|
|
|
* IDENTIFICATION |
|
|
|
* IDENTIFICATION |
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.7 1996/11/03 22:57:56 scrappy Exp $ |
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.8 1996/11/05 10:35:34 scrappy Exp $ |
|
|
|
* |
|
|
|
* |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "postgres.h" |
|
|
|
#include <postgres.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "utils/rel.h" |
|
|
|
#include <access/genam.h> |
|
|
|
#include "access/genam.h" |
|
|
|
#include <fmgr.h> |
|
|
|
|
|
|
|
#include <storage/bufpage.h> |
|
|
|
#include "storage/bufpage.h" |
|
|
|
#include <storage/bufmgr.h> |
|
|
|
#include "storage/bufmgr.h" |
|
|
|
#include <access/nbtree.h> |
|
|
|
#include "access/htup.h" |
|
|
|
|
|
|
|
#include "utils/palloc.h" |
|
|
|
|
|
|
|
#include "access/nbtree.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_MEMMOVE |
|
|
|
#ifndef HAVE_MEMMOVE |
|
|
|
# include "regex/utils.h" |
|
|
|
# include <regex/utils.h> |
|
|
|
#else |
|
|
|
#else |
|
|
|
# include <string.h> |
|
|
|
# include <string.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#include "fmgr.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static BTStack _bt_searchr(Relation rel, int keysz, ScanKey scankey, Buffer *bufP, BTStack stack_in); |
|
|
|
static BTStack _bt_searchr(Relation rel, int keysz, ScanKey scankey, Buffer *bufP, BTStack stack_in); |
|
|
|
static OffsetNumber _bt_firsteq(Relation rel, TupleDesc itupdesc, Page page, Size keysz, ScanKey scankey, OffsetNumber offnum); |
|
|
|
static OffsetNumber _bt_firsteq(Relation rel, TupleDesc itupdesc, Page page, Size keysz, ScanKey scankey, OffsetNumber offnum); |
|
|
|