Search Postgresql Archives

Re: build array of composites in SPI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merlin Moncure <mmoncure@xxxxxxxxx> writes:
> 2) build the composite via:
>   2a) TupleDescGetAttInMetadata
>   2b) BuildTupleFromCStrings
>   2c) get datum/HeapTupleGetDatum

If it's performance critical, you might want to avoid the extra overhead
of the AttInMetadata API.  Especially if you know the column datatypes
ahead of time, and even more especially if you have the values in datum
rather than C-string form.  Consider using heap_form_tuple directly.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux