Re: Convert *GetDatum() and DatumGet*() macros to inline functions
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Convert *GetDatum() and DatumGet*() macros to inline functions |
| Дата | |
| Msg-id | 3823178.1664309616@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Convert *GetDatum() and DatumGet*() macros to inline functions (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 26.09.22 19:34, Tom Lane wrote:
>> I think we can do this while still having reasonable type-safety
>> by adding AssertVariableIsOfTypeMacro() checks to the macros.
> (I had looked into AssertVariableIsOfTypeMacro() for an earlier variant
> of this patch, before I had the idea with the inline functions. It's in
> general a bit too strict, such as with short vs int, and signed vs
> unsigned, but it should work ok for this limited set of uses.)
Yeah. I had sort of expected to need a UInt64GetDatumFast variant
that would accept uint64, but there doesn't appear to be anyplace
that wants that today. We should be willing to add it if anyone
complains, though.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера