PgNotification

data class PgNotification(val processId: Int, val channel: String, val payload: String)

Represents an asynchronous notification from the PostgreSQL database (LISTEN/NOTIFY).

Constructors

Link copied to clipboard
constructor(processId: Int, channel: String, payload: String)

Properties

Link copied to clipboard

The channel the notification was sent on.

Link copied to clipboard

The payload sent with it, empty when NOTIFY carried none.

Link copied to clipboard

Process id of the backend that executed the NOTIFY, as the server reported it. That is usually another session entirely, not the connection this notification arrived on - unlike the process id on PgNotice, which always identifies the connection's own backend.