Re: Proposal for Signal Detection Refactoring

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Proposal for Signal Detection Refactoring
Дата
Msg-id
20180921044611.GH1338@paquier.xyz
Ответ на
Список
Дерево обсуждения
Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@gmail.com>
Re: Proposal for Signal Detection Refactoring Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Michael Paquier <michael@paquier.xyz>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal for Signal Detection Refactoring Thomas Munro <thomas.munro@gmail.com>
Re: Proposal for Signal Detection Refactoring Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Proposal for Signal Detection Refactoring Craig Ringer <craig@2ndquadrant.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Dmitry Dolgov <9erthalion6@gmail.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Andres Freund <andres@anarazel.de>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
Re: Proposal for Signal Detection Refactoring Chris Travers <chris.travers@adjust.com>
On Thu, Sep 20, 2018 at 03:08:34PM +0200, Chris Travers wrote:
> So here's a small patch.  I will add it for the next commit fest unless
> anyone has any reason I shouldn't.

-       return InterruptPending && (QueryCancelPending || ProcDiePending);
+       return PENDING_INTERRUPT_LEVEL() >= QUERY_CANCEL;

This is pretty similar to lock levels, where it is pretty hard to put a
strict monotone hierarchy when it comes to such interruptions.  The new
code does not seem like an improvment either, as for example in the code
mentioned above, you know directly what are the actions involved, which
is not the case with the new code style.
--
Michael
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Andres Freund
Дата:
FAQ