| От | Tom Lane |
|---|---|
| Тема | Re: build array of composites in SPI |
| Дата | |
| Msg-id | 2717.1258485587@sss.pgh.pa.us обсуждение |
| Ответ на | Re: 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:
> right...makes sense. converted. one last question: can you save off
> the blessed TupleDesc (that is, make it static) between invocations of
> the function (I'm not worried about it changing)?
You could probably get away with copying it into some long-term memory
context. Once you've blessed it the record typmod should remain the
same for the rest of the session.
If you're feeling bloody-minded you could remember the pointer returned
by lookup_rowtype_tupdesc(), but that strikes me as assuming too much
about the behavior of typcache.c.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера