Fwd: Listen and notify in psql process - Mailing list pgsql-general

From Sakshi Jain
Subject Fwd: Listen and notify in psql process
Date
Msg-id CACjnedKwj7KwgFLfaYmTh4=HKR6ZE6uvkgn-D9RSbHpMznt-oA@mail.gmail.com
Whole thread Raw
Responses Re: Listen and notify in psql process
Re: Listen and notify in psql process
List 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 by date:

Previous
From: Holger Vornholt
Date:
Subject: views on partitioned tables
Next
From: Ravi Krishna
Date:
Subject: Re: Listen and notify in psql process