Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ6k7-0006SG-Ot for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Apr 2013 01:56:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQ6k7-0000v4-9I for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Apr 2013 01:56:03 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ6k6-0000ul-CJ for pgsql-jdbc@postgresql.org; Thu, 11 Apr 2013 01:56:02 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ6jz-0005hB-Td for pgsql-jdbc@postgresql.org; Thu, 11 Apr 2013 01:56:01 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r3B1tp906845 for ; Wed, 10 Apr 2013 18:55:51 -0700 Message-ID: <51661825.5010308@hogranch.com> Date: Wed, 10 Apr 2013 18:55:49 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Improvements for statement cancellation References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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