Re: Question about GetAttributeByNum(Name) ExecQual.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Question about GetAttributeByNum(Name) ExecQual.c
Date: 2008-10-30 12:32:56
Message-ID: 9284.1225369976@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2008-10-30 12:50:53 Re: Question about GetAttributeByNum(Name) ExecQual.c
Previous Message Tom Lane 2008-10-30 12:30:28 Re: Hot Standby: Caches and Locks