Re: TOAST issue on custom index access method - Mailing list pgsql-hackers

From Carsten Kropf
Subject Re: TOAST issue on custom index access method
Date
Msg-id 07A391C6-AE33-4541-B51E-CE581DDEED36@fh-hof.de
Whole thread Raw
In response to Re: TOAST issue on custom index access method  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hmm,
k, then I don't know exactly what happens. I have some values in my composite type. The size of the index tuple (if
comingfrom one table and being copied to the target table) is about 15x bytes. Otherwise, if I insert the same tuple
directly,it is about 12kb. So, I don't know exactly what happens here, unfortunately. 
Best regardsCarsten Kropf
Am 24.06.2010 um 17:08 schrieb Tom Lane:

> Carsten Kropf <ckropf2@fh-hof.de> writes:
>> However, it is a little bit strange, that I get toasted values (when inserting from another table) and untoasted
values,if I insert items directly. Could anybody please explain this to me? 
>
> Huh?  An index will never ever get passed an externally-toasted value.
> See the TOAST_INDEX_HACK code in indextuple.c.
>
>             regards, tom lane
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Add TCP keepalive support to libpq.
Next
From: "Joshua D. Drake"
Date:
Subject: EOL for 7.4 and 8.0