在postgres中,可以查询当前的侦听器吗? [英] in postgres, can one query the current listeners?

查看:96
本文介绍了在postgres中,可以查询当前的侦听器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

notify / listen中,用于postgres,一个人在听

in the notify / listen for postgres, one listens through


listen channel

是否可以查询会话正在监听的当前频道?

is there a way to query the current channels to which the session is listening?

运气还不错.

推荐答案

select * 
from pg_listening_channels() 

这在系统信息功能"一章中列出:

This is listed in the chapter "System Information Functions":

http://www.postgresql.org/docs/current/static/functions-info.html

这篇关于在postgres中,可以查询当前的侦听器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆