Questions on input function of TOAST enabled user defined types

From: a <372660931(at)qq(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Questions on input function of TOAST enabled user defined types
Date: 2018-04-25 06:45:41
Message-ID: tencent_172F4CA62DAEC82B0EB5F926@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!!

Browse pgsql-general by date

  From Date Subject
Next Message Adrien Nayrat 2018-04-25 07:29:22 Re: [ClusterLabs] 答复: Postgres PAF setup
Previous Message Mohsen Bande 2018-04-25 06:41:19 Strange Index sizes