pg-listen | 📡 PostgreSQL LISTEN & NOTIFY for nodejs that finally works | Runtime Evironment library
kandi X-RAY | pg-listen Summary
kandi X-RAY | pg-listen Summary
PostgreSQL LISTEN & NOTIFY for node.js that finally works.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pg-listen
pg-listen Key Features
pg-listen Examples and Code Snippets
Community Discussions
Trending Discussions on pg-listen
QUESTION
I'm looking for any way to check on the server or on the client whether a client is listening on a specific NOTIFY topic.
There used to be a pg_listener
table in PostgreSQL versions up to 8.x (https://www.postgresql.org/docs/8.4/catalog-pg-listener.html).
In modern Postgres versions, I can't find anything on the client or server side that shows any information about active LISTENs.
...ANSWER
Answered 2019-Aug-21 at 16:04You can use the pg_listening_channels()
table function from PostgreSQL 9.0 on:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pg-listen
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page