Add an extra header byte to TOAST-pointer datums to represent their size

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

Commit: 27b8922221ee94c679ca533912d43ed5e8457510
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-30T19:54:58Z
Releases: 8.3.0
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.

Files

PathChange+/−
doc/src/sgml/storage.sgml modified +5 −5
src/backend/access/heap/tuptoaster.c modified +28 −17
src/include/catalog/catversion.h modified +2 −2
src/include/postgres.h modified +23 −13