Redefine the lp_flags field of item pointers as having four states, rather

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6889303531187f7867a5dfad5f5b5ba103f7cdd6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-12T22:10:26Z
Releases: 8.3.0
Redefine the lp_flags field of item pointers as having four states, rather
than two independent bits (one of which was never used in heap pages anyway,
or at least hadn't been in a very long time).  This gives us flexibility to
add the HOT notions of redirected and dead item pointers without requiring
anything so klugy as magic values of lp_off and lp_len.  The state values
are chosen so that for the states currently in use (pre-HOT) there is no
change in the physical representation.

Files

PathChange+/−
contrib/pageinspect/btreefuncs.c modified +1 −1
contrib/pageinspect/heapfuncs.c modified +6 −6
contrib/pgstattuple/pgstattuple.c modified +2 −2
src/backend/access/gin/ginentrypage.c modified +5 −5
src/backend/access/gin/ginvacuum.c modified +2 −2
src/backend/access/gin/ginxlog.c modified +5 −5
src/backend/access/gist/gist.c modified +2 −2
src/backend/access/gist/gistget.c modified +4 −4
src/backend/access/gist/gistutil.c modified +2 −2
src/backend/access/gist/gistvacuum.c modified +2 −2
src/backend/access/hash/hash.c modified +5 −5
src/backend/access/hash/hashinsert.c modified +2 −2
src/backend/access/hash/hashovfl.c modified +2 −2
src/backend/access/hash/hashpage.c modified +2 −2
src/backend/access/heap/heapam.c modified +17 −17
src/backend/access/heap/hio.c modified +2 −2
src/backend/access/heap/rewriteheap.c modified +2 −2
src/backend/access/nbtree/nbtinsert.c modified +16 −14
src/backend/access/nbtree/nbtpage.c modified +2 −2
src/backend/access/nbtree/nbtsort.c modified +3 −3
src/backend/access/nbtree/nbtutils.c modified +6 −6
src/backend/access/nbtree/nbtxlog.c modified +6 −6
src/backend/access/nbtree/README modified +9 −9
src/backend/commands/sequence.c modified +3 −3
src/backend/commands/trigger.c modified +2 −2
src/backend/commands/vacuum.c modified +7 −7
src/backend/commands/vacuumlazy.c modified +2 −2
src/backend/executor/nodeBitmapHeapscan.c modified +3 −3
src/backend/storage/page/bufpage.c modified +38 −33
src/include/storage/bufpage.h modified +4 −4
src/include/storage/itemid.h modified +114 −28