Re: Implementing an expanded object in C - Mailing list pgsql-general

From Andrew Gierth
Subject Re: Implementing an expanded object in C
Date
Msg-id 87bm41jxjp.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: Implementing an expanded object in C  (Michel Pelletier <pelletier.michel@gmail.com>)
Responses Re: Implementing an expanded object in C
List pgsql-general
>>>>> "Michel" == Michel Pelletier <pelletier.michel@gmail.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)


pgsql-general by date:

Previous
From: 吉成恒
Date:
Subject: type int2vector
Next
From: Begin Daniel
Date:
Subject: Re: Error message restarting a database