pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Michel Pelletier <pelletier.michel@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Implementing an expanded object in C
Date: Mon, 28 Jan 2019 03:13:57 +0000
Message-ID: <87bm41jxjp.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CACxu=vJ+-g7PyFA5erees6Evm1M0WAOBQjXbfRxYsriJ++nfmA@mail.gmail.com>
References: <CACxu=vLO9qg=e5tJ2gY41u+z4iD-xJUJU1p=Ppvi6taFKRqmZw@mail.gmail.com>
	<CACxu=vJ+-g7PyFA5erees6Evm1M0WAOBQjXbfRxYsriJ++nfmA@mail.gmail.com>

>>>>> "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)




view thread (4+ messages)  latest in thread

Message-ID: <87bm41jxjp.fsf@news-spur.riddles.org.uk>
Permalink:  ../87bm41jxjp.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87bm41jxjp.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, pelletier.michel@gmail.com
  Subject: Re: Implementing an expanded object in C
  In-Reply-To: <87bm41jxjp.fsf@news-spur.riddles.org.uk>
  References: <CACxu=vLO9qg=e5tJ2gY41u+z4iD-xJUJU1p=Ppvi6taFKRqmZw@mail.gmail.com> <CACxu=vJ+-g7PyFA5erees6Evm1M0WAOBQjXbfRxYsriJ++nfmA@mail.gmail.com> <87bm41jxjp.fsf@news-spur.riddles.org.uk>

* 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