Greg Stark <[email protected]> writes:
> On Tue, Dec 22, 2009 at 11:45 AM, Heikki Linnakangas
> <[email protected]> wrote:
>> AFAICS it is always a bug to be in a different memory context
>> in tuplestore_put* than in tuplestore_begin_heap(), so it would be more
>> robust to not put the burden on the callers.
> I thought there were comments specifically explaining why it was done
> that way but I don't recall what they said.
I think it was just a performance optimization. It's probably not
measurable though; even in the in-memory case there's at least a palloc
inside the put() function, no?
regards, tom lane
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers