Re: Java LISTEN/NOTIFY client library work-around

Поиск
Список
Период
Сортировка
От Jan Urbański
Тема Re: Java LISTEN/NOTIFY client library work-around
Дата
Msg-id 4ED62127.8050902@wulczer.org
обсуждение исходный текст
Ответ на Java LISTEN/NOTIFY client library work-around  (Joel Jacobson <joel@gluefinance.com>)
Ответы Re: Java LISTEN/NOTIFY client library work-around
Re: Java LISTEN/NOTIFY client library work-around
Список pgsql-hackers
On 30/11/11 13:07, Joel Jacobson wrote:
> Hi,
>
> As you know, LISTEN/NOTIFY is broken in the Java client library. You have
> to do a SELECT 1 in a while-loop to receive the notifications.
>
> http://jdbc.postgresql.org/documentation/head/listennotify.html
>
> Is there some other library with a proper implementation where you don't
> have to spam the database with queries to get the notifications?

You mean a Java library? If Java is not a requirement, the psycopg2 
Python library supports notifies well.

Cheers,
Jan


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

Предыдущее
От: Joel Jacobson
Дата:
Сообщение: Java LISTEN/NOTIFY client library work-around
Следующее
От: Robert Haas
Дата:
Сообщение: Re: synchronous commit vs. hint bits