Add an extra header byte to TOAST-pointer datums to represent their size
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |