| От | Tom Lane |
|---|---|
| Тема | Re: Server->Client notification (without polling)? |
| Дата | |
| Msg-id | 18270.1158783343@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Server->Client notification (without polling)? (Wolfgang Keller <wolfgang.keller.nospam@gmx.de>) |
| Список | pgsql-novice |
Wolfgang Keller <wolfgang.keller.nospam@gmx.de> writes:
> I read the manual again and now I understand that it's the libpq client
> library which requires polling a function to retrieve the notifications
> received from the server. Is there no way to tell the library "please call me
> when a notification arrives"?
No, because it's only a library, it doesn't have its own thread of
control.
If you are so inclined you can set up your application's main loop to
watch for input on the database connection's socket (along with whatever
other event sources it watches) and then call the library to see what it
was.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера