Skip to content

pgcapture

A scalable Netflix DBLog implementation for PostgreSQL

pgcapture · A scalable Netflix DBLog implementation for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101659pgcapturepgcapture0.1ETLApache-2.0Go

Usage

Sources:

pgcapture — A scalable Netflix DBLog implementation for PostgreSQL. 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 pgcapture;

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

  • pgcapture.current_query() is an extension function and returns TEXT.
  • pgcapture.log_ddl() is an extension function and returns event_trigger.
  • pgcapture.sql_command_tags(p_sql TEXT) is an extension function and returns TEXT[].
  • pgcapture.ddl_logs is a table installed or managed by the extension.
  • pgcapture.sources is a table installed or managed by the extension.

Requirements and Caveats

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

Table reader