2 .\" Title: dblink_get_notify
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "DBLINK_GET_NOTIFY" "3" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 dblink_get_notify \- retrieve async notifications on a connection
35 dblink_get_notify() returns setof (notify_name text, be_pid int, extra text)
36 dblink_get_notify(text connname) returns setof (notify_name text, be_pid int, extra text)
40 \fBdblink_get_notify\fR
41 retrieves notifications on either the unnamed connection, or on a named connection if specified\&. To receive notifications via dblink,
43 must first be issued, using
44 \fBdblink_exec\fR\&. For details see
52 The name of a named connection to get notifications on\&.
57 setof (notify_name text, be_pid int, extra text), or an empty set if none\&.
64 SELECT dblink_exec(\*(AqLISTEN virtual\*(Aq);
66 \-\-\-\-\-\-\-\-\-\-\-\-\-
70 SELECT * FROM dblink_get_notify();
71 notify_name | be_pid | extra
72 \-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-
78 SELECT * FROM dblink_get_notify();
79 notify_name | be_pid | extra
80 \-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-