Re: What is causing 'canceling statement due to user request' ? - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: What is causing 'canceling statement due to user request' ?
Date
Msg-id ehl979$huv$1@sea.gmane.org
Whole thread Raw
In response to What is causing 'canceling statement due to user request' ?  (Csaba Nagy <nagy@ecircle-ag.com>)
Responses Re: What is causing 'canceling statement due to user  (Csaba Nagy <nagy@ecircle-ag.com>)
List pgsql-general
On 23.10.2006 16:14 Csaba Nagy wrote:
> Hi all,
>
> I know of 2 causes:
>
>  - hit CTRL-C in the psql client;
>  - have a non-zero statement timeout and have the statement actually
> time out;
>
> But I am seeing this via JDBC which can't cancel a statement AFAIK

JDBC *can* cancel a running statement. You just need to call cancel()
from another thread.

http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#cancel()

Works great in my SQL front end.

Thomas

pgsql-general by date:

Previous
From: Walter Vaughan
Date:
Subject: Re: PostgreSQL in article I wrote
Next
From: Robert Treat
Date:
Subject: Re: Wordpress & PostgreSQL ...