Idea for minor tstore optimization

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Idea for minor tstore optimization
Date: 2008-02-27 20:33:25
Message-ID: 1204144405.14838.40.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I notice that several of the call sites of tuplestore_puttuple() start
with arrays of datums and nulls, call heap_form_tuple(), and then switch
into the tstore's context and call tuplestore_puttuple(), which
deep-copies the HeapTuple into the tstore. ISTM it would be faster and
simpler to provide a tuplestore_putvalues(), which just takes the datum
+ nulls arrays and avoids the additional copy.

-Neil

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message manolo.espa 2008-02-27 20:34:29 Re: [HACKERS] 2WRS [WIP]
Previous Message Magnus Hagander 2008-02-27 20:14:54 Re: OSSP can be used in the windows environment now!