mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
No more #ifdef XLOG.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nbtree.h,v 1.47 2000/11/21 21:16:05 petere Exp $
|
||||
* $Id: nbtree.h,v 1.48 2000/11/30 08:46:25 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -42,10 +42,7 @@ typedef struct BTPageOpaqueData
|
||||
#define BTP_ROOT (1 << 1) /* It's the root page (has no parent) */
|
||||
#define BTP_FREE (1 << 2) /* not currently used... */
|
||||
#define BTP_META (1 << 3) /* Set in the meta-page only */
|
||||
|
||||
#ifdef XLOG
|
||||
#define BTP_REORDER (1 << 4) /* items must be re-ordered */
|
||||
#endif
|
||||
} BTPageOpaqueData;
|
||||
|
||||
typedef BTPageOpaqueData *BTPageOpaque;
|
||||
@@ -209,11 +206,6 @@ typedef BTStackData *BTStack;
|
||||
#define P_FIRSTKEY ((OffsetNumber) 2)
|
||||
#define P_FIRSTDATAKEY(opaque) (P_RIGHTMOST(opaque) ? P_HIKEY : P_FIRSTKEY)
|
||||
|
||||
|
||||
#ifdef XLOG
|
||||
|
||||
/* XLOG stuff */
|
||||
|
||||
/*
|
||||
* XLOG allows to store some information in high 4 bits of log
|
||||
* record xl_info field
|
||||
@@ -257,7 +249,6 @@ typedef struct xl_btree_insert
|
||||
|
||||
#define SizeOfBtreeInsert (offsetof(xl_btreetid, tid) + SizeOfIptrData)
|
||||
|
||||
|
||||
/*
|
||||
* This is what we need to know about insert with split -
|
||||
* 22 + {4 + 8 | left hi-key} + [btitem] + right sibling btitems. Note that
|
||||
@@ -292,10 +283,6 @@ typedef struct xl_btree_newroot
|
||||
|
||||
#define SizeOfBtreeNewroot (offsetof(xl_btree_newroot, rootblk) + sizeof(BlockIdData))
|
||||
|
||||
/* end of XLOG stuff */
|
||||
|
||||
#endif /* XLOG */
|
||||
|
||||
/*
|
||||
* Operator strategy numbers -- ordering of these is <, <=, =, >=, >
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user