OSDN Git Service

Add an extra header byte to TOAST-pointer datums to represent their size
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2007 19:54:58 +0000 (19:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2007 19:54:58 +0000 (19:54 +0000)
commit27b8922221ee94c679ca533912d43ed5e8457510
tree18c9b5f58a7d0f3275a95fcc0046317ffec100d0
parent3ff0018c2ea4ad5587c83c3b56cb9d98bf7f0255
Add an extra header byte to TOAST-pointer datums to represent their size
explicitly.  This means a TOAST pointer takes 18 bytes instead of 17 --- still
smaller than in 8.2 --- which seems a good tradeoff to ensure we won't have
painted ourselves into a corner if we want to support multiple types of TOAST
pointer later on.  Per discussion with Greg Stark.
doc/src/sgml/storage.sgml
src/backend/access/heap/tuptoaster.c
src/include/catalog/catversion.h
src/include/postgres.h