Questions on input function of TOAST enabled user defined types - Mailing list pgsql-general

From a
Subject Questions on input function of TOAST enabled user defined types
Date
Msg-id tencent_172F4CA62DAEC82B0EB5F926@qq.com
Whole thread Raw
List 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 by date:

Previous
From: Mohsen Bande
Date:
Subject: Strange Index sizes
Next
From: Adrien Nayrat
Date:
Subject: Re: [ClusterLabs] 答复: Postgres PAF setup