Re: cancel query - Mailing list pgsql-general

From Kris Jurka
Subject Re: cancel query
Date
Msg-id Pine.LNX.4.33.0312111835400.1627-100000@leary.csoft.net
Whole thread Raw
In response to cancel query  (H A Prahalad <prahalad@MPI-SoftTech.Com>)
Responses Re: cancel query
List pgsql-general

On Tue, 9 Dec 2003, H A Prahalad wrote:

>
> Hello,
>     I want to know whether PostgreSQL support cancel() [cancel
> JDBCStatement]. I want to abort a long running query issued/executed by a
> java application using JDBC driver to connect to the database. Thanks.
>

The JDBC driver does support Statement.cancel(), but the tricky part is
that you need to have access to the Statement object that issued the
original query.  You can't just open a new connection and cancel another
query.

Kris Jurka


pgsql-general by date:

Previous
From: "Rick Gigger"
Date:
Subject: Re: [NOVICE] PostgreSQL Training
Next
From: Joel Rodrigues
Date:
Subject: Re: make error Mac OS X (ar: illegal option -- s)