| От | Tom Lane |
|---|---|
| Тема | Re: build array of composites in SPI |
| Дата | |
| Msg-id | 1535.1258481232@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | build array of composites in SPI (Merlin Moncure <mmoncure@gmail.com>) |
| Ответы |
Re: build array of composites in SPI
|
| Список | pgsql-general |
Merlin Moncure <mmoncure@gmail.com> 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера