git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f6d863)
Clean up buildfarm failures arising from the seemingly straightforward page
2008年7月14日 03:22:32 +0000 (03:22 +0000)
2008年7月14日 03:22:32 +0000 (03:22 +0000)
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.


diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h
index 9a09121a697c172df524c71855ed25d15a8122b0..5a8c2b0d307ba25fa8a137678eb7f4935a52f80b 100644 (file)
--- a/src/include/storage/bufpage.h
+++ b/src/include/storage/bufpage.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.82 2008年07月13日 21:50:04 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.83 2008年07月14日 03:22:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -179,9 +179,9 @@ typedef PageHeaderData *PageHeader;
#define PageIsValid(page) PointerIsValid(page)
/*
- * line pointer does not count as part of header
+ * line pointer(s) do not count as part of header
*/
-#define SizeOfPageHeaderData (offsetof(PageHeaderData, pd_linp[0]))
+#define SizeOfPageHeaderData (offsetof(PageHeaderData, pd_linp))
/*
* PageIsEmpty
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /