Tweak toast-related logic in heapam.c so that the toaster is only invoked
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Oct 2007 17:05:26 +0000 (17:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Oct 2007 17:05:26 +0000 (17:05 +0000)
commit56303abff0e30cbac3faedd17c7b52ea9886ffba
treebd67b4a22d2315c46c202b5b1d27f8b7bea83fd3
parent9a4b29d83287a9e23f276308356dbad1eab67ad4
Tweak toast-related logic in heapam.c so that the toaster is only invoked
when relkind = RELKIND_RELATION.  This syncs these tests with the Asserts
in tuptoaster.c, and ensures that we won't ever try to, for example,
compress a sequence's tuple.  Problem found by Greg Stark while stress-testing
with much-smaller-than-normal page sizes.
src/backend/access/heap/heapam.c