Postgres Professional
    Русский
    Русский
  • Postgres Pro DBMS
    • Postgres Pro Enterprise
    • Postgres Pro Standard
    • In clouds
    • Postgres Extensions
    • Development roadmap
  • Services
    • Database Technical support
    • Database Migration
    • Application Development
  • Education
  • Blog
  • About us
  • Contacts
  • PostgreSQL mailing list archive
  • Home
  • Documentation
  • Postgres Pro Standard 10
  • Download: 
    • epub
    • pdf
  • This page in other versions:
  • Postgres Pro Standard
    • 14
    • 13
    • 12
    • 11
    • 10
    • 9.6
    • 9.5
    •  ( current ) 
  • Postgres Pro Enterprise
    • 13
    • 12
    • 11
    • 10
    • 9.6
  • PostgreSQL
    • 14
    • 13
    • 12
    • 11
    • 10
    • 9.6
    • 9.5
    • 9.4
dblink_get_notify
Prev UpF.12. dblinkHome 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, using dblink_exec. For details see LISTEN and NOTIFY.

Arguments

connname

The name of a named connection to get notifications on.

Return Value

Returns setof (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;
NOTIFY

SELECT * FROM dblink_get_notify();
 notify_name | be_pid | extra
-------------+--------+-------
 virtual     |   1229 |
(1 row)

Prev Up Next
dblink_is_busy Home dblink_get_result

© Postgres Professional Europe Limited, 2015 — 2021

[email protected]

Your message is accepted. The reference number is .