Re: [HACKERS] Anyone working on asynchronous NOTIFY reception?

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Status of 6.3.2 snapshot on alpha/Digital Unix
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Status of 6.3.2 snapshot on alpha/Digital Unix