Skip site navigation (1) Skip section navigation (2)

Re: FW: code to cancel a running query, worker thread

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: FW: code to cancel a running query, worker thread
Date: 2006-05-08 01:12:42
Message-ID: 445E9B0A.4050605@opencloud.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
surabhi.ahuja wrote:

> Is the above peice of code fine, does the problem lie in the code which 
> calls the executeQuery of QueryExecutor?

Really, this sounds like a threading problem in your code that you need 
to solve yourself.

If you can show a testcase showing the driver doing something wrong .. 
or a thread dump where a thread is stuck in the driver .. now that is 
more interesting.

Otherwise it is just-another-threading-problem; I looked at your code 
briefly but it is not particularly clear what its behaviour is meant to 
be (i.e. it has "no obvious bugs" rather than "obviously no bugs" ;-)

-O

In response to

pgsql-jdbc by date

Next:From: MAIGNAN LucDate: 2006-05-09 15:36:07
Subject: Newbie question
Previous:From: surabhi.ahujaDate: 2006-05-07 16:34:00
Subject: FW: code to cancel a running query, worker thread

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group