Skip to content

cdc_webhook

Change Data Capture webhook extension

cdc_webhook · Change Data Capture webhook extension

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101310cdc_webhookcdc_webhook1.0ETLUnknownPython

Usage

Sources:

cdc_webhook — A PostgreSQL extension that enables Change Data Capture (CDC) by sending webhook notifications for database changes. This extension is written in C and SQL, allowing real-time monitoring of INSERT, UPDATE, and DELETE operations on specified tables. Use it when moving, transforming, or integrating the corresponding data from PostgreSQL. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION cdc_webhook;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • call_webhook(payload JSONB, webhook_url TEXT, headers JSONB, timeout INT, cancel_on_failure BOOLEAN, retry_number INT, retry_interval INT, retry_backoff TEXT) is an extension function and returns void.
  • cdc_webhook.credentials_audit_trigger() is an extension function and returns TRIGGER.
  • cdc_webhook.event_log_audit_trigger() is an extension function and returns TRIGGER.
  • create_event_trigger is an extension function.
  • cdc_webhook.credentials is a table installed or managed by the extension.
  • cdc_webhook.event_log is a table installed or managed by the extension.
  • cdc_webhook is a schema created by the extension.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader