Re: Java LISTEN/NOTIFY client library work-around

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Java LISTEN/NOTIFY client library work-around
Дата
Msg-id 4ED6366C.7000602@dunslane.net
обсуждение исходный текст
Ответ на Re: Java LISTEN/NOTIFY client library work-around  (Jan Urbański <wulczer@wulczer.org>)
Список pgsql-hackers

On 11/30/2011 07:27 AM, Jan Urbański wrote:
> 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.
>
>

... and probably most libraries that (unlike JDBC) are libpq-based, like
the perl DBD::Pg.


cheers

andrew


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Word-smithing doc changes
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Reserved words and delimited identifiers