From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: huangning290@yahoo.com <huangning290@yahoo.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: create a new GIN index for my own type
Date: Mon, 4 Oct 2021 13:42:15 +0200
Message-ID: <62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.com> (raw)
In-Reply-To: <2030212581.1470350.1633329041369@mail.yahoo.com>
References: <2030212581.1470350.1633329041369.ref@mail.yahoo.com>
<2030212581.1470350.1633329041369@mail.yahoo.com>
On 10/4/21 8:30 AM, huangning290@yahoo.com wrote:
> Hi:
> I created a new data type, and then I wanted to create a GIN index for
> it, but when I created the index, the program would crash 。
> The version of postgresql is 9.6。
>
> The following is part of the code, and I also refer to the code of intarray.
>
I doubt anyone is going to investigate this unless you provide a more
complete example - something like an extension where people can do "make
install" without having to fill in various pieces of code.
To investigate the crash, you need to attach a debugger to the backend
and run the CREATE INDEX (or whatever triggers the crash). The debugger
should catch the segfault and you'll be able to identify where exactly
it crashes and why (and investigate).
1) first get PID of the backend
SELECT pg_backend_pid();
2) then attach a debugger to the backend
gdb -p $PID
(gdb) c
3) run the CREATE INDEX query
4) get backtrace from the debugger
(gdb) bt
regards
--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
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: tomas.vondra@enterprisedb.com, huangning290@yahoo.com
Subject: Re: create a new GIN index for my own type
In-Reply-To: <62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.com>
References: <2030212581.1470350.1633329041369.ref@mail.yahoo.com> <2030212581.1470350.1633329041369@mail.yahoo.com> <62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.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