tcn
Triggered change notifications
tcn : Triggered change notifications
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4920 | tcn | tcn | 1.0 |
FUNC | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-dt- | No | Yes | No | Yes | no | yes |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
Create this extension with:
Usage
Provides a trigger function that sends NOTIFY events with information about changed rows, enabling asynchronous change tracking.
Trigger Function
| Function | Description |
|---|---|
triggered_change_notification() |
Send NOTIFY on row changes with primary key info |
Optional parameter: custom channel name (defaults to tcn).
Notification Payload Format
Operations: I (INSERT), U (UPDATE), D (DELETE).