From: huangning290@yahoo.com <huangning290@yahoo.com>
To: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: create a new GIN index for my own type
Date: Fri, 8 Oct 2021 01:04:43 +0000 (UTC)
Message-ID: <253999042.430598.1633655083588@mail.yahoo.com> (raw)
In-Reply-To: <8c37c2e2-ed4d-ebd0-2b05-7c630133bf33@enterprisedb.com>
References: <2030212581.1470350.1633329041369.ref@mail.yahoo.com>
<2030212581.1470350.1633329041369@mail.yahoo.com>
<62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.com>
<586106794.1549713.1633354360427@mail.yahoo.com>
<8c37c2e2-ed4d-ebd0-2b05-7c630133bf33@enterprisedb.com>
Thanks for you reply.This is my stack information.
Another question is, I have already set INTERNALLENGTH in CREATE TYPE, do I need to set it elsewhere?
On Monday, October 4, 2021, 09:51:38 PM GMT+8, Tomas Vondra <tomas.vondra@enterprisedb.com> wrote:
On 10/4/21 3:32 PM, huangning290@yahoo.com wrote:
> I have already debugged the program according to this step, but I found
> that in the DataCopy function, the variable typlen should be 8, but it
> is -1,
>
Well, if you have debugged this, it'd be nice if you could share more
information (e.g. backtraces, etc.) otherwise others can just guess what
you saw. And that makes it much harder to help you.
I see you defined the data type as PASSEDBYVALUE, but you haven't
specified INTERNALLENGTH, so it's -1 (i.e. variable length). Obviously,
that can't be passed by value - not sure if this is intentional or just
a case of CREATE TYPE not checking it.
BTW it's customary not to top post - inline replies are much easier to
follow, as it makes clearer which parts you respond to. And please make
sure that you're responding to the mailing list, not just directly to
the other person.
regards
--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachments:f71916d7254ff236aef8f26efffcfb3.png (image/png, 507.8K) downloadview image
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: huangning290@yahoo.com, tomas.vondra@enterprisedb.com
Subject: Re: create a new GIN index for my own type
In-Reply-To: <253999042.430598.1633655083588@mail.yahoo.com>
References: <2030212581.1470350.1633329041369.ref@mail.yahoo.com> <2030212581.1470350.1633329041369@mail.yahoo.com> <62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.com> <586106794.1549713.1633354360427@mail.yahoo.com> <8c37c2e2-ed4d-ebd0-2b05-7c630133bf33@enterprisedb.com> <253999042.430598.1633655083588@mail.yahoo.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