]> granicus.if.org Git - postgresql/commit
Clean up the use of some page-header-access macros: principally, use
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jul 2008 20:45:47 +0000 (20:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jul 2008 20:45:47 +0000 (20:45 +0000)
commit9d035f425452279041c52e01cf83b2a27e121b5c
treed521a3bdb9ca231ed49e09a48259a45b519f6d1c
parent45efb09a01e93d20ccb5671703649d9f87f744de
Clean up the use of some page-header-access macros: principally, use
SizeOfPageHeaderData instead of sizeof(PageHeaderData) in places where that
makes the code clearer, and avoid casting between Page and PageHeader where
possible.  Zdenek Kotala, with some additional cleanup by Heikki Linnakangas.

I did not apply the parts of the proposed patch that would have resulted in
slightly changing the on-disk format of hash indexes; it seems to me that's
not a win as long as there's any chance of having in-place upgrade for 8.4.
17 files changed:
src/backend/access/gist/gistutil.c
src/backend/access/hash/hashutil.c
src/backend/access/heap/heapam.c
src/backend/access/heap/hio.c
src/backend/access/heap/pruneheap.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/commands/sequence.c
src/backend/commands/trigger.c
src/backend/optimizer/util/plancat.c
src/backend/storage/buffer/bufmgr.c
src/include/access/hash.h
src/include/access/htup.h
src/include/access/itup.h
src/include/access/nbtree.h
src/include/access/tuptoaster.h