Re: [GENERAL] ERROR: canceling query due to user request - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: [GENERAL] ERROR: canceling query due to user request
Date
Msg-id 4140C546.7020801@opencloud.com
Whole thread Raw
In response to Re: [GENERAL] ERROR: canceling query due to user request  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc
Tom Lane wrote:
> Paul Thomas <paul@tmsl.demon.co.uk> writes:
>
>>On 09/09/2004 10:41 Oliver Jowett wrote:
>>
>>>JDBC gives you no way to ensure you only call cancel() on a running query
>>>(there's a race between query execution returning and the call to
>>>cancel()). Calling cancel() on a statement that's not currently executing
>>>should do nothing; if it ends up cancelling a future query, it's a driver
>>>bug.
>
>
>>Thanks for the explaination Oliver. Maybe there is a driver bug then?
>
>
> IIRC there was such a bug at one time, but I thought it had been fixed.
> Maybe the problem is use of an old driver?

My patch for this never got applied, AFAIK. The current driver still
seems to send the cancellation request and continue without waiting for
an EOF from the server.

-O

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] ERROR: canceling query due to user request
Next
From: Tore Halset
Date:
Subject: Re: [GENERAL] ERROR: canceling query due to user request