Re: Connecting to NOTIFY with telnet
От | Jeff Janes |
---|---|
Тема | Re: Connecting to NOTIFY with telnet |
Дата | |
Msg-id | CAMkU=1zHwRenmC51quR2gnrFftGW5mKGQxvx+03YekqANCB4Bg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Connecting to NOTIFY with telnet (Igal Sapir <igal@lucee.org>) |
Ответы |
Re: Connecting to NOTIFY with telnet
|
Список | pgsql-general |
On Sat, May 4, 2019 at 1:49 PM Igal Sapir <igal@lucee.org> wrote:
Christoph,On Sat, May 4, 2019 at 10:44 AM Christoph Moench-Tegeder <cmt@burggraben.net> wrote:## Igal Sapir (igal@lucee.org):
> My main "issue" is that the official pgjdbc driver does not support the
> notifications with listen and I was trying to figure out why.
https://jdbc.postgresql.org/documentation/head/listennotify.htmlI should have been more explicit. My main issue is with the following statement from the link that you posted:> A key limitation of the JDBC driver is that it cannot receive asynchronous notifications and must poll the backend to check if any notifications were issuedPolling is much less efficient than event handling and I'm sure that there's a major performance hit with that.
Isn't that addressed here?:
// receive notifications immediately:
// org.postgresql.PGNotification notifications[] = pgconn.getNotifications(10000);
Cheers,
Jeff
В списке pgsql-general по дате отправления: