Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 427a879

Browse files
committed
New func _bt_checkkeys() added to let caller know number of keys
for which checking was TRUE.
1 parent bdae359 commit 427a879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/access/nbtree.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nbtree.h,v 1.10 1997/03/18 18:41:16 scrappy Exp $
9+
* $Id: nbtree.h,v 1.11 1997/03/24 08:04:51 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -67,8 +67,8 @@ typedef struct BTScanOpaqueData {
6767
Buffer btso_curbuf;
6868
Buffer btso_mrkbuf;
6969
uint16 qual_ok; /* 0 for quals like key == 1 && key > 2 */
70-
uint16 numberOfKeys; /* number of key attributes */
71-
uint16 numberOfFirstKeys; /* number of first key attributes */
70+
uint16 numberOfKeys; /* number of keys */
71+
uint16 numberOfFirstKeys; /* number of keys for 1st attribute */
7272
ScanKey keyData; /* key descriptor */
7373
} BTScanOpaqueData;
7474

@@ -185,7 +185,6 @@ typedef struct BTPageState {
185185

186186
#define BTORDER_PROC 1
187187

188-
189188
/*
190189
* prototypes for functions in nbtinsert.c
191190
*/
@@ -274,6 +273,7 @@ extern void _bt_freestack(BTStack stack);
274273
extern void _bt_orderkeys(Relation relation, BTScanOpaque so);
275274
extern bool _bt_checkqual(IndexScanDesc scan, IndexTuple itup);
276275
extern bool _bt_checkforkeys(IndexScanDesc scan, IndexTuple itup, Size keysz);
276+
extern bool _bt_checkkeys (IndexScanDesc scan, IndexTuple tuple, Size *keysok);
277277
extern BTItem _bt_formitem(IndexTuple itup);
278278

279279
/*

0 commit comments

Comments
 (0)