Re: Hot Standy introduced problem with query cancel behavior

Поиск
Список
Период
Сортировка
Искать
От
Joachim Wieland
Тема
Re: Hot Standy introduced problem with query cancel behavior
Дата
Msg-id
dc7b844e0912290514t290366b3uf82760cd46052ea9@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Hot Standy introduced problem with query cancel behavior Kris Jurka <books@ejurka.com>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Robert Haas <robertmhaas@gmail.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Robert Haas <robertmhaas@gmail.com>
Re: Hot Standy introduced problem with query cancel behavior Andres Freund <andres@anarazel.de>
Re: Hot Standy introduced problem with query cancel behavior Joachim Wieland <joe@mcknight.de>
Re: Hot Standy introduced problem with query cancel behavior Simon Riggs <simon@2ndQuadrant.com>
On Sun, Dec 27, 2009 at 10:42 PM, Simon Riggs  wrote:
> Thanks for the report. I'll see about a fix.

In the end we are about to use SIGINT for two use cases:
- cancel an idle transaction- cancel a running query

Previously a backend that was DoingCommandRead == true didn't do
anything upon reception of SIGINT, now it aborts either the running
query or the idle transaction, which is why Kris's example behaves
differently now.

If we use the same signal for both cases, the receiving backend cannot
tell what the intention of the sending backend was. That's why I
proposed to make SIGINT similar to SIGUSR1 where we write a reason to
a shared memory structure first and then send the signal (see
http://archives.postgresql.org/pgsql-hackers/2009-12/msg02067.php from
a few days ago).

There was also some dicussion about how to communicate the
cancellation back to the client when its idle transaction got aborted.
I implemented what I thought was the conclusion of the discussion but
haven't received a reply on it yet.


Joachim

В списке pgsql-hackers по дате отправления
От: Guillaume Lelarge
Дата:
От: Alvaro Herrera
Дата:
FAQ