Re: Long running query - connection and keepalives enabled but query not canceled

From: Dmitry Vasiliev <dmitry(dot)vasiliev(at)coins(dot)ph>
To: Tomasz Ostrowski <tometzky+pg(at)ato(dot)waw(dot)pl>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Long running query - connection and keepalives enabled but query not canceled
Date: 2019-06-05 11:14:43
Message-ID: 1AD6C7F4-2062-437A-8478-9E505F3879D3@coins.ph
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tomasz Ostrowski wrote:

> The database would get an error on the connection socket only after it tries to read or write to it next time. But it does not try to do this - it's busy counting those quarks until statement_timeout is reached.
>

It is unfortunate that PostgreSQL does not take into account that the client has disconnected and does not need to process query.
I know only one non-stable utility that can solve your problem: https://github.com/yandex/odyssey <https://github.com/yandex/odyssey> (unfortunately pgbouncer can't do that).

--
Dmitry Vasiliev

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2019-06-05 11:53:42 Re: pg_repack issue
Previous Message Prakash Ramakrishnan 2019-06-05 10:48:02 pg_repack issue