On 2013-10-28 10:12:41 +0100, Pavel Stehule wrote: > > I think we'd need another argument to CREATE FUNCTION like SERIALIZE > > pointing to a function that that has to return data that can be stored > > on disk. Deserialization would be up to individual functions. > > > > Depending on the specification this might turn out to be slightly > > invasive, tuplestore/sort et al probably have to care...
> Then you need a functions than prepare a clone of unpacked data too.
Why? In those case we can (and should) just store the ondisk representation.
ok,
Pavel
Greetings,
Andres Freund
PS: Could you please try to trim the quoted emails a bit?