Change the PageGetContents() macro to guarantee its result is maxalign'd,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jul 2008 21:50:04 +0000 (21:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jul 2008 21:50:04 +0000 (21:50 +0000)
commitb477649c6c50aba8d52e6a578159e02bf931986d
treee95a8aa5e317f1aca68caddc242ad80fa29d8766
parent8ec0437466bc4bcbfd7f211765e4a7587ff3f4d6
Change the PageGetContents() macro to guarantee its result is maxalign'd,
thereby forestalling any problems with alignment of the data structure placed
there.  Since SizeOfPageHeaderData is maxalign'd anyway in 8.3 and HEAD, this
does not actually change anything right now, but it is foreseeable that the
header size will change again someday.  I had to fix a couple of places that
were assuming that the content offset is just SizeOfPageHeaderData rather than
MAXALIGN(SizeOfPageHeaderData).  Per discussion of Zdenek's page-macros patch.
src/backend/storage/page/bufpage.c
src/include/access/gin.h
src/include/storage/bufpage.h