Questions on input function of TOAST enabled user defined types

Поиск
Список
Период
Сортировка
От a
Тема Questions on input function of TOAST enabled user defined types
Дата
Msg-id tencent_172F4CA62DAEC82B0EB5F926@qq.com
обсуждение исходный текст
Список pgsql-general
The normal input function for variables with properties of {internallength!= variable, storage=plain/main}, the return type will be Datum.

The definition of Datum is "unsigned __int64" which may only consist the address of pointed data.

For data with variable length, the length of the data is also needed, so Datum type would be not enough since it only provide a pointer to the data.

So what should I do if I would have a TOAST enabled user defined data types, should I use other type such as struct varlena as return type??

Thanks so much!!

В списке pgsql-general по дате отправления:

Предыдущее
От: Mohsen Bande
Дата:
Сообщение: Strange Index sizes
Следующее
От: Adrien Nayrat
Дата:
Сообщение: Re: [ClusterLabs] 答复: Postgres PAF setup