Re: [HACKERS] Anyone working on asynchronous NOTIFY reception?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Anyone working on asynchronous NOTIFY reception? |
| Дата | |
| Msg-id | 16976.892740944@sss.pgh.pa.us обсуждение |
| Ответы |
Re: [HACKERS] Anyone working on asynchronous NOTIFY reception?
|
| Список | pgsql-hackers |
Mattias Kregert <matti@algonet.se> writes:
> Async communication between backend and frontend would be really nice.
> I use Tcl a lot and I really miss this. It would be wonderful to have
> libpgtcl do callbacks, so that info on-screen could be automagically
> updated whenever something changes.
Yes, if anything were to be done along this line it'd also make sense
to revise libpgtcl. I think it ought to work more like this:
(a) the idle loop is invoked while waiting for a query response
(so that a pg_exec statement behaves sort of like "tkwait");
(b) a "listen" command is sent via a new pg_listen statement that
specifies a callback command string. Subsequent notify responses
can occur whenever a callback is possible.
I suppose (a) had better be an option to pg_exec statements so that
we don't break existing Tcl code...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера