aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/bufpage.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h
index c00f07260b6..c70915efcac 100644
--- a/src/include/storage/bufpage.h
+++ b/src/include/storage/bufpage.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: bufpage.h,v 1.1 1996/08/28 01:58:03 scrappy Exp $
+ * $Id: bufpage.h,v 1.2 1996/10/18 07:39:07 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -167,6 +167,13 @@ typedef enum {
(sizeof(PageHeaderData) - sizeof(ItemIdData)) ? true : false)
/*
+ * PageIsNew --
+ * returns true iff page is not initialized (by PageInit)
+ */
+
+#define PageIsNew(page) (((PageHeader) (page))->pd_upper == 0)
+
+/*
* PageGetItemId --
* Returns an item identifier of a page.
*/