Re: TOAST vs arrays - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TOAST vs arrays
Date
Msg-id 17808.963931427@sss.pgh.pa.us
Whole thread Raw
In response to Re: TOAST vs arrays  (JanWieck@t-online.de (Jan Wieck))
List pgsql-hackers
JanWieck@t-online.de (Jan Wieck) writes:
>> What do you want to do about this?  We could have heap_tuple_toast_attrs
>> scan through all the elements of arrays of toastable types, but that
>> strikes me as slow.  I'm thinking the best approach is for the array
>> construction routines to refuse to insert toasted values into array
>> objects in the first place --- instead, expand them before insertion.
>> Then the whole array could be treated as a toastable object, but there
>> are no references inside the array to worry about.

>     I think the array construction routines is the right place to
>     expand them.

Sounds like a plan.

Just in case anyone wants to object: I'm planning to rip out all of
the "large object array" and "chunked array" support that's in there
now.  AFAICS it does nothing that won't be done as well or better by
toasted arrays, and it probably doesn't work anyway (seeing that much
of it has been ifdef'd out for a long time).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: FlushRelationBuffers returned -2
Next
From: Tom Lane
Date:
Subject: Re: Untrusted PL/Tcl?