| От | Tom Lane |
|---|---|
| Тема | Re: Question on triggers and plpgsql |
| Дата | |
| Msg-id | 16028.1112986056@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Question on triggers and plpgsql (Vivek Khera <vivek@khera.org>) |
| Список | pgsql-sql |
Vivek Khera <vivek@khera.org> writes:
> I have a lot of processing that could benefit from this type of
> synchronization, except the fact that there's no Pg command to "wait
> until I get a notify message".
This is a client library deficiency, not a problem with the backend or
the protocol. In libpq it is actually possible to do it, but you have
to select() or poll() on the socket for yourself, which is a tad ugly.
OTOH, most apps that want to do that also want to wait on other sockets
at the same time, so a cleaner-looking API wouldn't necessarily be any
more useful.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера