From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Improvements for statement cancellation
Date: Wed, 10 Apr 2013 18:55:49 -0700
Message-ID: <51661825.5010308@hogranch.com> (raw)
In-Reply-To: <CAMnJ+BeLWPqX2W5dse946hzAhWxPu3FUDNR6oWUhKkWAAoGkJw@mail.gmail.com>
References: <CAMnJ+BeLWPqX2W5dse946hzAhWxPu3FUDNR6oWUhKkWAAoGkJw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 4/10/2013 6:47 PM, Pawel Veselov wrote:
> pgpool-II has a special code that sleeps for one second before
> releasing cancel request (rather, between sending cancel requests to
> all backends involved in a connection). It has its reasons for doing
> that sleep.
there may be reasons, but anything that relies on an arbitrary timeout
like 1 second is, IMHO, poorly designed.
>
> This leaves me with a neraly-locked up system sometimes, as the
> cancellation process can take a very long time (these seconds do add
> up). Below is a sample stack trace of how it looks like, code path-wise.
>
> I'm wondering if it's possible if Postgres JDBC could change the
> implementation of cancel() so that cancelQuery() is only sent if the
> statement being called is the actual statement that is being executed
> on the connection, and otherwise be a no-op.
why use pgpool then? use weblogic's native java connection queuing.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pierce@hogranch.com
Subject: Re: Improvements for statement cancellation
In-Reply-To: <51661825.5010308@hogranch.com>
References: <CAMnJ+BeLWPqX2W5dse946hzAhWxPu3FUDNR6oWUhKkWAAoGkJw@mail.gmail.com> <51661825.5010308@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox