Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter
Дата
Msg-id 46BE44AA.4030701@opencloud.com
обсуждение исходный текст
Ответ на Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter  (Andrea Spinelli <aspinelli@imteam.it>)
Список pgsql-jdbc
Andrea Spinelli wrote:

> I see your point, but - as far as I know - there is no way of
> interrupting a running query (short of exiting from the main
> executable);

Statement.cancel(). If the communication between the client and server
is intact and the server is still responding, that will eventually
cancel the query. (In your case, due to a server bug the server is off
in lala land so I'd guess that cancels won't work)

-O

В списке pgsql-jdbc по дате отправления: