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

Commit d92c370

Browse files
committed
Clean up buildfarm failures arising from the seemingly straightforward page
macros patch :-(. Results from both baiji and mastodon imply that MSVC fails to perceive offsetof(PageHeaderData, pd_linp[0]) as a constant expression in some contexts where offsetof(PageHeaderData, pd_linp) works fine. Sloth, thy name is Micro.
1 parent 6f6d863 commit d92c370

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/storage/bufpage.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.82 2008/07/13 21:50:04 tgl Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.83 2008/07/14 03:22:32 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -179,9 +179,9 @@ typedef PageHeaderData *PageHeader;
179179
#define PageIsValid(page) PointerIsValid(page)
180180

181181
/*
182-
* line pointer does not count as part of header
182+
* line pointer(s) do not count as part of header
183183
*/
184-
#define SizeOfPageHeaderData (offsetof(PageHeaderData, pd_linp[0]))
184+
#define SizeOfPageHeaderData (offsetof(PageHeaderData, pd_linp))
185185

186186
/*
187187
* PageIsEmpty

0 commit comments

Comments
 (0)