磨砺技术珠矶,践行数据之道,追求卓越价值 

回到上一级页面: PostgreSQL索引页

 

事实上,准确地说,notify命令的格式是:

NOTIFY channel [ , payload ]
首先是信息通道,然后才是 具体信息流。

验证如下:

session A

postgres#listen channel;

session B

postgres#notify channel '1';
postgres#notify channel '2';

回到session A
随便执行一个命令:

postgres#select current_date;

-----date-----

2012-07-12

从PID5558的服务器进程接收到带有字节流量'1'的异步通知消息'channel'
从PID5558的服务器进程接收到带有字节流量'2'的异步通知消息'channel'

postgres#

 

回到上一级页面: PostgreSQL索引页

磨砺技术珠矶,践行数据之道,追求卓越价值

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2022-01-17
  • 2021-10-01
  • 2021-06-15
  • 2022-02-08
  • 2022-01-29
  • 2022-12-23
相关资源
相似解决方案