Re: Statement.cancel() may cancel queries in the future

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Statement.cancel() may cancel queries in the future
Дата
Msg-id 3425.1063664256@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Statement.cancel() may cancel queries in the future  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: Statement.cancel() may cancel queries in the future
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> On Mon, Sep 15, 2003 at 12:01:47PM -0400, Tom Lane wrote:
>> You could make things a lot closer to
>> synchronous if you wait for the postmaster to drop the connection,
>> instead.  That would guarantee that the postmaster has completed
>> executing kill().  I suppose actual delivery of the signal to the
>> backend might not have happened yet, but it's hard to believe that
>> it could be postponed past the backend's next successful execution of
>> recv().

> That sounds reasonable. I'll put together a patch to do that.

It looks like libpq has the same issue, as PQrequestCancel() does not
wait around for the postmaster to drop the connection.  Anyone want
to fix that?

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Statement.cancel() may cancel queries in the future
Следующее
От: "Yang Soon Chiao"
Дата:
Сообщение: Re: cannot start tomcat