Re: Implementing an expanded object in C

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Implementing an expanded object in C
Date: 2019-01-28 03:13:57
Message-ID: 87bm41jxjp.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>>> "Michel" == Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com> writes:

Michel> Replying to my own problem here, I guess this was a situation
Michel> where explaining it in detail revealed the problem to me. By
Michel> specifying my type is 'passedbyvalue'

That cannot possibly be appropriate.

Michel> CREATE TYPE matrix (
Michel> internallength = 8,

Your type is clearly not a fixed-length type, because fixed-length types
cannot have expanded datums. A fixed-length type must contain its entire
representation within the fixed length - it is not allowed to be a
pointer to something else.

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Begin Daniel 2019-01-28 04:23:04 Re: Error message restarting a database
Previous Message 吉成恒 2019-01-28 03:11:42 type int2vector