Re: backend crash on DELETE, reproducible locally
Ondřej Bouda <obouda@email.cz>
From: Ondřej Bouda <obouda@email.cz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-general@lists.postgresql.org
Date: 2018-11-06T19:54:31Z
Lists: pgsql-hackers, pgsql-general
Dne 6.11.2018 v 20:45 Alvaro Herrera napsal(a):
> What indexes are there in this table? Indexes on expressions are
> particularly suspect.
There are some simple btree indexes due to foreign keys, and this one,
which seems as the cause for the crashes:
CREATE INDEX schedulecard_overlap_idx
ON public.schedulecard USING gist
(scheduletemplate_id, (period_day::integer % 7), timerange)
TABLESPACE pg_default;
When I drop it, the UPDATE statement gets executed without any problems.
When I create the index again, the same UPDATE crashes the server.
Regards,
Ondřej Bouda
Commits
-
Disable recheck_on_update optimization to avoid crashes.
- 05f84605dbeb 11.1 landed
- 5d28c9bd73e2 12.0 landed
-
Allow HOT updates for some expression indexes
- c203d6cf81b4 11.0 cited