Fix tuptoaster bugs induced by making bytea toastable. Durn thing was
Tom Lane <tgl@sss.pgh.pa.us>
Fix tuptoaster bugs induced by making bytea toastable. Durn thing was trying to toast tuples inserted into toast tables! Fix is two-pronged: first, ensure all columns of a toast table are marked attstorage='p', and second, alter the target chunk size so that it's less than the threshold for trying to toast a tuple. (Code tried to do that but the expression was wrong.) A few cosmetic cleanups in tuptoaster too. NOTE: initdb forced due to change in toaster chunk-size.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +8 −6 |
| src/backend/access/heap/tuptoaster.c | modified | +46 −50 |
| src/backend/commands/command.c | modified | +9 −1 |
| src/include/access/tuptoaster.h | modified | +42 −10 |
| src/include/catalog/catversion.h | modified | +2 −2 |