Postgres module

notify

procedure · 1 overloadsince 0.27.0Source

NOTIFY a channel, with a payload of up to 7999 bytes. Delivered to the listeners when the transaction commits; inside none, at once. A connection also hears its own notifications.

notify :: (c: *Connection, channel: string, payload := "") -> Pg_Error

NOTIFY a channel, with a payload of up to 7999 bytes. Delivered to the listeners when the transaction commits; inside none, at once. A connection also hears its own notifications.

Parameters

c: *Connection
the connection.
channel: string
the channel's name.
payload := ""
the text sent along. Empty for none.

Returns

See also