mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Macro for btree runtime fix.
This commit is contained in:
parent
6b52dc7491
commit
66decbfb08
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nbtree.h,v 1.50 2001/01/24 19:43:19 momjian Exp $
|
||||
* $Id: nbtree.h,v 1.51 2001/02/07 23:34:18 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -50,6 +50,10 @@ typedef BTPageOpaqueData *BTPageOpaque;
|
|||
#define BTREE_METAPAGE 0 /* first page is meta */
|
||||
#define BTREE_MAGIC 0x053162
|
||||
|
||||
#define BTreeInvalidParent(opaque) \
|
||||
(opaque->btpo_parent == InvalidBlockNumber || \
|
||||
opaque->btpo_parent == BTREE_METAPAGE)
|
||||
|
||||
#define BTREE_VERSION 1
|
||||
|
||||
typedef struct BTMetaPageData
|
||||
|
|
|
|||
Loading…
Reference in a new issue