Missed bet in toaster routines - Mailing list pgsql-hackers

From Tom Lane
Subject Missed bet in toaster routines
Date
Msg-id 29678.1074265966@sss.pgh.pa.us
Whole thread Raw
Responses Re: Missed bet in toaster routines
List pgsql-hackers
Wouldn't it be a win for heap_tuple_toast_attrs() to fall out quickly
if the tuple contains no varlena attributes?  I'm thinking of adding
a test like
/* Nothing to do if tuple contains no varlena fields */if ((newtup && !HeapTupleAllFixed(newtup)) ||    (oldtup &&
!HeapTupleAllFixed(oldtup)))   /* do existing processing */
 

This is a pretty cheap test (just checking a header flag) and saves lots
of useless scanning when it succeeds.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Bug and/or feature? Complex data types in tables...
Next
From: "Marc G. Fournier"
Date:
Subject: Re: nomenclature