Re: [GENERAL] ERROR: canceling query due to user request

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: [GENERAL] ERROR: canceling query due to user request
Дата
Msg-id 4140C546.7020801@opencloud.com
обсуждение исходный текст
Ответ на Re: [GENERAL] ERROR: canceling query due to user request  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] ERROR: canceling query due to user request
Следующее
От: Tore Halset
Дата:
Сообщение: Re: [GENERAL] ERROR: canceling query due to user request