git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9d035f4) | patch
Change the PageGetContents() macro to guarantee its result is maxalign'd,
2008年7月13日 21:50:04 +0000 (21:50 +0000)
2008年7月13日 21:50:04 +0000 (21:50 +0000)
commit 6816577a786cd9be257f6600e3cde2d86f5adb46
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 diff | blob | blame | history
src/include/access/gin.h diff | blob | blame | history
src/include/storage/bufpage.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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