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

LISTEN 中文man頁面

系統(tǒng)
LISTEN 將當(dāng)前會(huì)話注冊為通知條件 name

NAME

LISTEN - 監(jiān)聽一個(gè)通知

SYNOPSIS

LISTEN name

DESCRIPTION 描述

LISTEN 將當(dāng)前會(huì)話注冊為通知條件 name


 當(dāng)執(zhí)行了命令 NOTIFY name  后,不管是此會(huì)話還是其他聯(lián)接到同一數(shù)據(jù)庫的會(huì)話執(zhí)行的, 所有正在監(jiān)聽此通知條件的會(huì)話都將收到通知, 并且接下來每個(gè)會(huì)話將通知與其相連的前端應(yīng)用.請參考 NOTIFY  獲取更多信息.


 使用 UNLISTEN 命令,可以將一個(gè)會(huì)話內(nèi)已注冊的通知條件刪除. 同樣,會(huì)話退出時(shí)自動(dòng)刪除該會(huì)話正在監(jiān)聽的已注冊通知條件.


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

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

PARAMETERS 參數(shù)

name

 通知條件名 (任何標(biāo)識(shí)符)。

EXAMPLES 例子


 在 psql 里配制和執(zhí)行一個(gè)監(jiān)聽/通知序列:

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

COMPATIBILITY 兼容性


 在 SQL 標(biāo)準(zhǔn)里沒有 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)]

責(zé)任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

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
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 国产黄色麻豆视频 | 久久69精品久久久久久久电影好 | 久久久久国产视频 | 欧美一级片在线 | 日本黄色高清视频 | 国产精品久久久久久久久久三级 | 91观看| 亚洲国产精品一区二区久久 | 亚洲国产精品久久人人爱 | 色片在线观看 | www视频在线观看 | 一级在线观看 | 免费观看的黄色网址 | 91精品国产综合久久精品 | 91欧美激情一区二区三区成人 | 欧美精品一区久久 | 在线观看毛片网站 | 免费h视频 | 中文字幕97 | 国产精品国产精品国产专区不卡 | 成人精品一区二区三区中文字幕 | 日韩综合在线播放 | 男女爱爱网站 | 久久国产精品视频 | 香蕉一区二区 | 天天影视网天天综合色在线播放 | 久久久久国产精品一区二区 | 日韩av成人在线 | 久久久国产精品入口麻豆 | 日韩欧美精品在线 | 亚洲色图插插插 | 自拍偷拍第1页 | 国产综合久久 | 色婷婷av一区二区三区软件 | 色狠狠一区 | 日本三级网站在线 | 狠狠爱综合 | 欧美日韩综合一区 | 黄网站涩免费蜜桃网站 | 久久综合一区 | 日韩欧美一级片 |