Re: BUG #16122: segfault pg_detoast_datum (datum=0x0) at fmgr.c:1833 numrange query
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Adam Scott <adam.c.scott@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-11-19T00:57:02Z
Lists: pgsql-bugs
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
Commits
-
Fix edge-case crashes and misestimation in range containment selectivity.
- 8c8b456b5116 10.12 landed
- 784c58da1957 9.5.21 landed
- 70c17a81278c 12.2 landed
- 6bd567b65858 9.4.26 landed
- 5832be6ca4d7 11.7 landed
- 2dd10477cbfc 9.6.17 landed
- 652686a334b4 13.0 landed
-
Use stdbool.h if suitable
- 9a95a77d9d5d 11.0 cited
-
Redesign get_attstatsslot()/free_attstatsslot() for more safety and speed.
- 9aab83fc5039 10.0 cited