dblink_get_notify — 檢索連線上的非同步通知
dblink_get_notify() returns setof (notify_name text, be_pid int, extra text) dblink_get_notify(text connname) returns setof (notify_name text, be_pid int, extra text)
dblink_get_notify
檢索未命名連線或指定的具名連線上的通知。若要透過 dblink 接收通知,必須先使用 dblink_exec
發出 LISTEN
。有關詳細資訊,請參閱 LISTEN 和 NOTIFY。
connname
要取得通知的具名連線的名稱。
傳回 setof (notify_name text, be_pid int, extra text)
,如果沒有則傳回空集合。
SELECT dblink_exec('LISTEN virtual'); dblink_exec ------------- LISTEN (1 row) SELECT * FROM dblink_get_notify(); notify_name | be_pid | extra -------------+--------+------- (0 rows) NOTIFY virtual; NOTIFY SELECT * FROM dblink_get_notify(); notify_name | be_pid | extra -------------+--------+------- virtual | 1229 | (1 row)
如果您在文件中發現任何不正確、與您使用特定功能的體驗不符或需要進一步澄清的地方,請使用此表單回報文件問題。