Re: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query.

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query.
Дата
Msg-id CAM-w4HPFpWHDYb6SKqwN5Myo3B2ugNECD36XbHNVcHZJrLwB5A@mail.gmail.com
обсуждение исходный текст
Ответ на RE: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query.  (Skarsol <postgresql@skarsol.com>)
Ответы Re: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query.  (Skarsol <postgresql@skarsol.com>)
Список pgsql-bugs
If I understand the bug report correctly you have two layers of
pgbouncer and it's only the second layer that is introducing these
latencies? I wonder if that should help point out why these latencies
are happening but I don't have any immediate ideas.

I suppose there are two avenues for addressing this, but they're both
probably large projects, not simple bug fixes....

1) PGBouncer is the one breaking the session <-> tcp stream
correspondence. Perhaps it should learn about cancellation messages
and learn about how to determine whether that backend session is still
allocated to the same incoming session? I'm not sure how that would
happen though since the cancellation request doesn't have any
information about which session is the intended target.

2) The postgres client could include some meta information about what
request the client is intending to cancel. But that has a few gotchas
as well. Clients stream many requests and process the responses as
they arrive. Just because the client has processed up to a certain
point doesn't mean the server hasn't streamed out responses past that.
It's quite common to want to cancel precisely because a stream of
responses are coming.


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

Предыдущее
От: Ashutosh Sharma
Дата:
Сообщение: Re: 10.1: hash index size exploding on vacuum full analyze
Следующее
От: Skarsol
Дата:
Сообщение: Re: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query.