From: Vadim B. Mikheev Date: Fri, 18 Oct 1996 07:39:07 +0000 (+0000) Subject: Move definition of PageIsNew from hio.c to here X-Git-Tag: REL2_0~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57de92c648eca7c4bdb6a1a922246542d282b8ca;p=postgresql Move definition of PageIsNew from hio.c to here --- diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h index c00f07260b..c70915efca 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 $ * *------------------------------------------------------------------------- */ @@ -166,6 +166,13 @@ typedef enum { (((PageHeader) (page))->pd_lower == \ (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.