| От | Neil Conway |
|---|---|
| Тема | tuplestore_putvalues() |
| Дата | |
| Msg-id | 1204245473.22273.7.camel@dell.linuxdev.us.dell.com обсуждение исходный текст |
| Ответы |
Re: tuplestore_putvalues()
Re: tuplestore_putvalues() Re: tuplestore_putvalues() |
| Список | pgsql-patches |
Attached is a patch that allows an array of Datums + nulls to be inserted into a tuplestore without first creating a HeapTuple, per recent suggestion on -hackers. This avoids making an unnecessary copy. There isn't a really analogous optimization to be applied to tuplesort: it takes either a TTS, an IndexTuple or a basic Datum, none of which involve an extra copy. BTW, I notice that almost all of the callers of the various tuplestore_put methods switch into the tuplestore's context first. We could simplify their lives a bit by having the tuplestore remember the context in which it is allocated and do the switch itself. Perhaps it's not worth bothering with at this point, though. -Neil
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера