国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

PostgreSQL學習第十四篇 listen與notify

2019-11-09 13:40:25
字體:
來源:轉載
供稿:網友
PostgreSQL提供了client端之間通過服務器端進行消息通信的機制。這種機制是通過listen和notify命令來完成的。session1:postgres=# listen postgres;LISTENpostgres=# listen limingpostgres-# ;LISTENsession2:postgres=# notify postgres,'hello Word';NOTIFYpostgres=# notify liming,'hello liming';NOTIFYpostgres=#session1;postgres=# select 1;   --隨便執行了一個命令 ?column?----------        1(1 row)Asynchronous notification "postgres" with payload "hello word" received from server PRocess with PID 12241.Asynchronous notification "liming" with payload "hello liming" received from server process with PID 12241.postgres=#  listen和notify的相關命令:	1. listen:監聽消息通道	2. unlisten:取消先前的監聽	3. notify:發送消息到消息通道中	4. pg_notify():與notify命令功能相同	5. pg_listening_channels():調用此函數可以查詢當前session已注冊了哪些消息監聽
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 承德市| 龙口市| 上饶市| 汉川市| 连山| 随州市| 岑溪市| 富顺县| 玉树县| 抚州市| 航空| 富源县| 桃园市| 赣榆县| 涟水县| 东丽区| 巴青县| 湖南省| 淮安市| 苍溪县| 溆浦县| 平顺县| 华宁县| 新宾| 都昌县| 榆林市| 灵石县| 西华县| 惠水县| 丰县| 西吉县| 长子县| 闻喜县| 大邑县| 平湖市| 宜良县| 合作市| 乌兰察布市| 迁西县| 司法| 阜新|