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)
commit211cd227942663b5c5d38baca8eb3c4475499b24
treef28688984a02cbcb9adececc78be7cb30f361c6b
parent34eda3a4be36ca729752ab2abb1e136542085564
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