Skip to content

pgl_validate

Cross-node data validation for pglogical and PostgreSQL logical replication — lag-correct, contract-aware row-count and checksum verification with sound (zero-false-positive) divergence detection.

pgl_validate · Cross-node data validation for pglogical and PostgreSQL logical replication — lag-correct, contract-aware row-count and checksum verification with sound (zero-false-positive) divergence detection.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101670pgl_validatepgl_validate0.1.0ETLMITRust

Usage

Sources:

pgl_validate — pgl_validate is a PostgreSQL extension for validating table contents across pglogical and PostgreSQL logical-replication topologies. 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 pgl_validate;

SELECT *
FROM pgl_validate.compare_table('public.accounts'::regclass);

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.

Requirements and Caveats

  • The reviewed control file declares default version 0.1.0.
  • The control file marks the extension as non-relocatable.
  • The control file does not require superuser-only installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader