1DBLINK_GET_NOTIFY(3)    PostgreSQL 9.2.24 Documentation   DBLINK_GET_NOTIFY(3)
2
3
4

NAME

6       dblink_get_notify - retrieve async notifications on a connection
7

SYNOPSIS

9       dblink_get_notify() returns setof (notify_name text, be_pid int, extra text)
10       dblink_get_notify(text connname) returns setof (notify_name text, be_pid int, extra text)
11

DESCRIPTION

13       dblink_get_notify retrieves notifications on either the unnamed
14       connection, or on a named connection if specified. To receive
15       notifications via dblink, LISTEN must first be issued, using
16       dblink_exec. For details see LISTEN(7) and NOTIFY(7).
17

ARGUMENTS

19       connname
20           The name of a named connection to get notifications on.
21

RETURN VALUE

23       Returns setof (notify_name text, be_pid int, extra text), or an empty
24       set if none.
25

EXAMPLES

27           SELECT dblink_exec('LISTEN virtual');
28            dblink_exec
29           -------------
30            LISTEN
31           (1 row)
32
33           SELECT * FROM dblink_get_notify();
34            notify_name | be_pid | extra
35           -------------+--------+-------
36           (0 rows)
37
38           NOTIFY virtual;
39           NOTIFY
40
41           SELECT * FROM dblink_get_notify();
42            notify_name | be_pid | extra
43           -------------+--------+-------
44            virtual     |   1229 |
45           (1 row)
46
47
48
49PostgreSQL 9.2.24                 2017-11-06              DBLINK_GET_NOTIFY(3)
Impressum