pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a <372660931@qq.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Questions on input function of TOAST enabled user defined types
Date: Wed, 25 Apr 2018 14:45:41 +0800
Message-ID: <tencent_172F4CA62DAEC82B0EB5F926@qq.com> (raw)

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!!

Message-ID: <tencent_172F4CA62DAEC82B0EB5F926@qq.com>
Permalink:  ../tencent_172F4CA62DAEC82B0EB5F926@qq.com/
Also on:    postgresql.org/message-id/tencent_172F4CA62DAEC82B0EB5F926@qq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: 372660931@qq.com
  Subject: Re: Questions on input function of TOAST enabled user defined types
  In-Reply-To: <tencent_172F4CA62DAEC82B0EB5F926@qq.com>
  References: <tencent_172F4CA62DAEC82B0EB5F926@qq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox