| От | Tom Lane |
|---|---|
| Тема | Re: Understanding Datum |
| Дата | |
| Msg-id | 4479.1300914342@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Understanding Datum (Nick Raj <nickrajjain@gmail.com>) |
| Ответы |
Re: Understanding Datum
|
| Список | pgsql-general |
Nick Raj <nickrajjain@gmail.com> writes:
> In postgres, typedef uintptr_t Datum
> Datum is getting value from PG_GETARG_POINTER(1);
> But, now problem is how would i know the type of PG_GETARG_POINTER(1)
> (postgres internally pass this argument) to figure out datum type?
Datum does not carry any type information, only a value. Functions are
typically coded to know their input types a priori. If you want to
write code that is not type-specific then you'd better be passing around
type OIDs as well as values.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера