Re: Question about GetAttributeByNum(Name) ExecQual.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Question about GetAttributeByNum(Name) ExecQual.c
Date
Msg-id 9284.1225369976@sss.pgh.pa.us
Whole thread Raw
In response to Question about GetAttributeByNum(Name) ExecQual.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: Question about GetAttributeByNum(Name) ExecQual.c
List pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> GetAttributeByNum has first parameter as HeapTupleHeader,  but most functions 
> use Datum and after that they call DatumGetHeapTupleHeader. The difference is 
> that DatumGetHeapTupleHeader performs detoast on tuple(row type).

> Is it intention do not detoast in these functions or it is a bug?

You would certainly not want a tuple to get separately detoasted for
each attribute you pull from it.  So having detoasting here would be
the wrong thing IMHO.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Hot Standby: Caches and Locks
Next
From: Zdenek Kotala
Date:
Subject: Re: Question about GetAttributeByNum(Name) ExecQual.c