Fwd: Listen and notify in psql process

Поиск
Список
Период
Сортировка
От Sakshi Jain
Тема Fwd: Listen and notify in psql process
Дата
Msg-id CACjnedKwj7KwgFLfaYmTh4=HKR6ZE6uvkgn-D9RSbHpMznt-oA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Listen and notify in psql process  (Ravi Krishna <srkrishna@yahoo.com>)
Re: Listen and notify in psql process  (Torsten Förtsch <tfoertsch123@gmail.com>)
Список pgsql-general

Hi Team,

How to listen from within a psql process and get the payloads?

Do Postgresql have any such a mechanism where in a session a process send a "listen <name>" sql command and then gets a message if someone in the other session issued a "notify <name>".

Please provide an example of how to do this.

I am looking for listen to return some thing when a notify has been issued.

--
Thanks & Regards
Sakshi Jain
New Delhi
8882433263
 


--
Thanks & Regards
Sakshi Jain
New Delhi
8882433263
 

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

Предыдущее
От: Holger Vornholt
Дата:
Сообщение: views on partitioned tables
Следующее
От: Ravi Krishna
Дата:
Сообщение: Re: Listen and notify in psql process