Re: What is causing 'canceling statement due to user request' ?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What is causing 'canceling statement due to user request' ?
Date: 2006-10-24 14:50:17
Message-ID: ehl979$huv$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-10-24 14:50:18 Re: recovery from xid wraparound
Previous Message Tom Lane 2006-10-24 14:49:30 Re: What is causing 'canceling statement due to user request' ?