成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

LISTEN 中文man頁面

系統
LISTEN 將當前會話注冊為通知條件 name

NAME

LISTEN - 監聽一個通知

SYNOPSIS

LISTEN name

DESCRIPTION 描述

LISTEN 將當前會話注冊為通知條件 name


 當執行了命令 NOTIFY name  后,不管是此會話還是其他聯接到同一數據庫的會話執行的, 所有正在監聽此通知條件的會話都將收到通知, 并且接下來每個會話將通知與其相連的前端應用.請參考 NOTIFY  獲取更多信息.


 使用 UNLISTEN 命令,可以將一個會話內已注冊的通知條件刪除. 同樣,會話退出時自動刪除該會話正在監聽的已注冊通知條件.


 前端應用檢測通知事件的方法取決于 PostgreSQL 應用使用的編程接口. 如果使用基本的libpq庫, 應用將 LISTEN 當作普通 SQL 命令使用,而且必須周期地調用 PQnotifies 過程來檢測是否有通知到達. 其他像libpgtcl接口提供了更高級的控制通知事件的方法;實際上, 使用libpgtcl,應用程序員不應該直接使用 LISTEN 或 UNLISTEN. 請參考你使用的接口的文檔獲取更多細節.

NOTIFY [notify(7)] 的手冊頁包含更廣泛的關于 LISTEN 和 NOTIFY 的使用的討論.  

PARAMETERS 參數

name

 通知條件名 (任何標識符)。

EXAMPLES 例子


 在 psql 里配制和執行一個監聽/通知序列:

LISTEN virtual;
NOTIFY virtual;
Asynchronous notification "virtual" received from server process with PID 8448.

COMPATIBILITY 兼容性


 在 SQL 標準里沒有 LISTEN  

SEE ALSO 參見

NOTIFY [notify(7)], UNLISTEN [unlisten(l)]

#p#

NAME

LISTEN - listen for a notification

SYNOPSIS

LISTEN name

DESCRIPTION

LISTEN registers the current session as a listener on the notification condition name. If the current session is already registered as a listener for this notification condition, nothing is done.

Whenever the command NOTIFY name is invoked, either by this session or another one connected to the same database, all the sessions currently listening on that notification condition are notified, and each will in turn notify its connected client application. See the discussion of NOTIFY for more information.

A session can be unregistered for a given notify condition with the UNLISTEN command. A session's listen registrations are automatically cleared when the session ends.

The method a client application must use to detect notification events depends on which PostgreSQL application programming interface it uses. With the libpq library, the application issues LISTEN as an ordinary SQL command, and then must periodically call the function PQnotifies to find out whether any notification events have been received. Other interfaces such as libpgtcl provide higher-level methods for handling notify events; indeed, with libpgtcl the application programmer should not even issue LISTEN or UNLISTEN directly. See the documentation for the interface you are using for more details.

NOTIFY [notify(7)] contains a more extensive discussion of the use of LISTEN and NOTIFY.  

PARAMETERS

name
Name of a notify condition (any identifier).

EXAMPLES

Configure and execute a listen/notify sequence from psql:

LISTEN virtual;
NOTIFY virtual;
Asynchronous notification "virtual" received from server process with PID 8448.

COMPATIBILITY

There is no LISTEN statement in the SQL standard.  

SEE ALSO

NOTIFY [notify(7)], UNLISTEN [unlisten(l)]

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-25 14:16:51

listen中文man

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man

2011-08-12 13:49:23

hostid中文man

2011-08-12 13:54:46

hostname中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 91视频三区| 日本午夜精品一区二区三区 | 亚洲 欧美 另类 综合 偷拍 | 中文二区| 久久一区二区视频 | 国产一级在线 | av一级在线观看 | 伦理二区 | 欧美二区三区 | av中文字幕在线 | 亚洲精品9999 | 中文字幕av第一页 | 国产精品区二区三区日本 | 夜夜操操操 | 欧美视频精品 | 91麻豆精品国产91久久久久久 | 欧美成人a∨高清免费观看 色999日韩 | 国产精品成人69xxx免费视频 | 精品久久ai电影 | 成人不卡 | 中文字幕av在线一二三区 | 欧美一级电影免费 | 亚洲成人网在线观看 | 91在线影院 | 久久这里有精品 | 欧美精品一区二区免费视频 | www.久久 | 国产伦精品一区二区三区精品视频 | 国产在线观看一区二区三区 | 91伊人网 | 成人欧美一区二区三区视频xxx | 免费a网| 在线观看亚 | av天天澡天天爽天天av | 成人在线看片 | 五月婷婷导航 | 久久久精 | 波多野结衣精品在线 | 色婷婷综合网 | 日日干综合| 日本aaa视频 |