From: Michael Paquier <michael@paquier.xyz>
To: Adam Scott <adam.c.scott@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16122: segfault pg_detoast_datum (datum=0x0) at fmgr.c:1833 numrange query
Date: Tue, 19 Nov 2019 09:57:02 +0900
Message-ID: <20191119005702.GA1614@paquier.xyz> (raw)
In-Reply-To: <CA+s62-PWUgGJ7XaXnvFEcT9FeeVjHwojjtzP3i7LeuuoLDxZ+g@mail.gmail.com>
References: <16122-eb35bc248c806c15@postgresql.org>
<20191118045020.GC1543@paquier.xyz>
<CA+s62-PWUgGJ7XaXnvFEcT9FeeVjHwojjtzP3i7LeuuoLDxZ+g@mail.gmail.com>
On Mon, Nov 18, 2019 at 02:51:25PM -0800, Adam Scott wrote:
>> Did you see that after updating to 10.11. If you used 10.10 or
>> an older version, did the problem happen?
>
> Originally this first was discovered on Centos 7, PG 10.10, then loaded the
> 40gb table on 10.11 on Ubuntu.
Which means that prior 10.9 you used this query, but did not notice
anything? Or is 10.10 the first version in the 10.X series you used?
>> Seeing the plan of your query may help as well. Could you run EXPLAIN
>> on it or does it crash before? Perhaps a parallel plan is involved
>> here?
> Explain plan works fine with no crash
I was also wondering about the shape of the plan selected here. The
crash happens when doing some selectivity on the clause when working
on a plan, but it could help.
> I've done a binary search to find out where the error occurs in the data,
> but no luck. It seems intermittent now. Finally, I was able to reproduce
> the error repeatably with a blank table:
>
> Stop and start postgres from fresh, and then run this query (notice, I
> removed a sarg from the originally supplied query):
> select id from natica_hdu_test
> WHERE
> "dec_range" <@ '[88.9999998611111,90.0000001388889)';
Thanks. I can see that you have provided a dump on the other part of
the thread. Let's continue from that.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, adam.c.scott@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16122: segfault pg_detoast_datum (datum=0x0) at fmgr.c:1833 numrange query
In-Reply-To: <20191119005702.GA1614@paquier.xyz>
* 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