LISTEN/NOTIFY and python

Поиск
Список
Период
Сортировка
От John D. Burger
Тема LISTEN/NOTIFY and python
Дата
Msg-id 220696A9-B535-4F9F-97E9-17D78DC3DD2F@mitre.org
обсуждение исходный текст
Ответы Re: LISTEN/NOTIFY and python  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi -

Does anyone have any suggestions for how to write client python code
that uses LISTEN?  The only thing I can find is the older PyGreSQL
module (import pg), which has getnotify(), but this seems to require
busy-waiting.  Is there any way to do this that will use select() or
something under the covers, so my client doesn't spin up the cpu?
(Yes, I know I could poll-sleep-poll-sleep - that's what I'll do if
there's nothing cleaner.)

- John D. Burger
   MITRE



В списке pgsql-general по дате отправления:

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: cache - timing
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unable to start postgres in recovery mode.