| От | Craig Ringer |
|---|---|
| Тема | Re: pg_notify but no pg_listen? |
| Дата | |
| Msg-id | 4C732BEA.4070800@postnewspapers.com.au обсуждение |
| Ответ на | Re: pg_notify but no pg_listen? (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: pg_notify but no pg_listen?
|
| Список | pgsql-general |
On 08/24/2010 06:43 AM, Bruce Momjian wrote: > A.M. wrote: >> There is a new pg_notify function in pgsql 9.0 but no pg_listen >> equivalent? Why? It sure would be handy to pass quoted strings... > > Notify sends the notify; there is no place to send a 'listen' payload. I assume what they want is the ability to filter notifications, so they only get notifications with a certain payload. Seems to me that in that case you should just be using different notify values (possibly using the two-argument form of pg_notify) so you can listen on different things depending on what you are interested in. -- Craig Ringer
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера