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

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: What is causing 'canceling statement due to user request' ?
Дата
Msg-id ehl979$huv$1@sea.gmane.org
обсуждение исходный текст
Ответ на What is causing 'canceling statement due to user request' ?  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: What is causing 'canceling statement due to user  (Csaba Nagy <nagy@ecircle-ag.com>)
Список 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 по дате отправления:

Предыдущее
От: Walter Vaughan
Дата:
Сообщение: Re: PostgreSQL in article I wrote
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Wordpress & PostgreSQL ...