Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
dblink_get_notify
Prev UpF.11. dblink — connect to other PostgreSQL databasesHome Next

dblink_get_notify

dblink_get_notify — retrieve async notifications on a connection

Synopsis

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)

Description

dblink_get_notify retrieves notifications on either the unnamed connection, or on a named connection if specified. To receive notifications via dblink,LISTEN must first be issued, usingdblink_exec. For details seeLISTEN andNOTIFY.

Arguments

connname

The name of a named connection to get notifications on.

Return Value

Returnssetof (notify_name text, be_pid int, extra text), or an empty set if none.

Examples

SELECT dblink_exec('LISTEN virtual'); dblink_exec------------- LISTEN(1 row)SELECT * FROM dblink_get_notify(); notify_name | be_pid | extra-------------+--------+-------(0 rows)NOTIFY virtual;NOTIFYSELECT * FROM dblink_get_notify(); notify_name | be_pid | extra-------------+--------+------- virtual     |   1229 |(1 row)

Prev Up Next
dblink_is_busy Home dblink_get_result
pdfepub
Go to PostgreSQL 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp