Re: Client-Side triggers possible?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Client-Side triggers possible?
Дата
Msg-id 4D1C2780.4030603@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: Client-Side triggers possible?  (Clemens Eisserer <linuxhippy@gmail.com>)
Список pgsql-jdbc
On 12/28/2010 02:27 AM, Clemens Eisserer wrote:
> Hi,
>
>> you should take a look at that :
>> http://jdbc.postgresql.org/documentation/83/listennotify.html
>
> Thanks that was exactly what I was looking for :)
> Unfourtunatly there's still polling required, it seems the jdbc driver
> has to issue requests in order to get the notifications.

Actually, in newer versions it doesn't have to poll the server. You can
test to see if there are notifications ready to receive and process them
on a timer loop. You're still polling, but only locally within the JVM;
you're not creating any new network activity.

This does *NOT* work if you're using an SSL socket, though, so you have
to be prepared to fall back to issuing "SELECT 1;" or the like for
server-side polling if you can't use client-side-only polling.

--
Craig Ringer

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

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: PostgreSQL Authentication and Pooling in JBoss : static 'postgres' user VS dynamic jboss user
Следующее
От: Thor Michael Støre
Дата:
Сообщение: java.sql.DatabaseMetaData.getProcedures and overloaded functions