| От | Tom Lane |
|---|---|
| Тема | Re: Datum as struct |
| Дата | |
| Msg-id | 2259624.1754744675@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Datum as struct (Peter Eisentraut <peter@eisentraut.org>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter@eisentraut.org> writes:
> On 08.08.25 22:30, Andres Freund wrote:
>> One thing that would be an interesting follow-up would be to make the struct
>> not just carry the datum, but also the type of the field, to be filled in by
>> tuple deforming and the *GetDatum() functions. Then we could assert that the
>> correct DatumGet*() functions are used. I think that'd allow us to detect a
>> rather large number of issues that we currently aren't finding
> That would make Datum >=9 bytes? Is that something we would need to
> worry about in terms of performance?
It'd have to be a cassert-like option, not something you'd enable in
production.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера