Re: BUG #16095: Segfault while executing trigger

Поиск
Список
Период
Сортировка
От Thomas Butz
Тема Re: BUG #16095: Segfault while executing trigger
Дата
Msg-id 1820932263.377949.1573040896379.JavaMail.zimbra@optitool.de
обсуждение исходный текст
Ответ на BUG #16095: Segfault while executing trigger  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #16095: Segfault while executing trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> Thomas, can you try with that patch and see if it fixes the problem
> for you?  We're quite close to 12.1 release, so if there's more to fix,
> it'd be better to find out ASAP.
>
> Note that this theory requires that the query we see being executed within
> a BEFORE UPDATE trigger had itself fired a BEFORE UPDATE trigger, and that
> there'd been concurrent commits causing EPQ to run.  That doesn't seem
> exactly implausible, but it's data not evident in your report.

That seems to be the case because the software is running parallel UPDATE requests against a table called "placex" which has an active trigger[1]:


CREATE TRIGGER placex_before_update BEFORE UPDATE ON placex
    FOR EACH ROW EXECUTE PROCEDURE placex_update();


and the placex_update() function is again issuing UPDATE statements[2]:


UPDATE placex set linked_place_id = null, indexed_status = 2
    where linked_place_id = NEW.place_id;


[1] https://github.com/openstreetmap/Nominatim/blob/65daef70c1f9aa80e6d37fc12198309e49b883ca/sql/tables.sql#L198-L199
[2] https://github.com/openstreetmap/Nominatim/blob/05d7f9139247981cc7d9edc1edca9492e94b516b/sql/functions.sql#L1248-L1249


Are there any prebuilt deb packages with this patch?



Kind regards

Thomas Butz

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: BUG #16096: psql (non-interactive mode) SQL multi-request commandsdon't report all feedback ?!
Следующее
От: vignesh C
Дата:
Сообщение: Reorderbuffer crash during recovery