Re: cancel query

From: H A Prahalad <prahalad(at)MPI-SoftTech(dot)Com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: cancel query
Date: 2003-12-12 05:21:27
Message-ID: Pine.GSO.4.33.0312112319290.6033-100000@mpi.mpi-softtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Thanks. I have access to the Statement object that issued the original
query. I used the latest JDBC driver for PostgreSQl7.3 and JDK1.4 and I
used threads to achieve it. Thanks once again.

prahalad

On Thu, 11 Dec 2003, Kris Jurka wrote:

>
>
> 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
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Travers 2003-12-12 12:46:57 Re: [NOVICE] PostgreSQL Training
Previous Message Saravanan A 2003-12-12 04:53:42 Build Problem in 7.3.5 version