postgres-impl-logical-replication

Configure PostgreSQL logical replication with publications, subscriptions, and row filters.

Updated May 19, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package --skill postgres-impl-logical-replication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-impl-logical-replication
Source: https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package/tree/main/skills/source/postgres-impl/postgres-impl-logical-replication
Command: npx skills add https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package --skill postgres-impl-logical-replication

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the setup and management of logical replication in PostgreSQL, helping users replicate data reliably and efficiently between databases.

Core Features & Use Cases

  • Logical Replication Setup: Automate the creation of publications and subscriptions.
  • Replica Identity Configuration: Handle replica identity settings for tables without primary keys.
  • Row Filters and Column Lists: Apply fine-grained control over what data is replicated.
  • Use Case: For a PostgreSQL database admin, setting up logical replication to replicate sales data between two databases for analytics without downtime.

Quick Start

Initialize logical replication for a specific table by running the command: use the postgres-impl-logical-replication skill to configure replication for the sales table with a row filter for Europe only.

Frequently Asked Questions about postgres-impl-logical-replication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up logical replication in PostgreSQL for specific data?

To set up logical replication, you automate the creation of publications and subscriptions while applying row filters for selective data. This allows fine-grained control over exactly what information replicates between databases.

Can I configure PostgreSQL logical replication for tables without primary keys?

Yes, you can configure PostgreSQL logical replication for tables without primary keys by adjusting the replica identity settings. This handles updates and deletes properly when standard primary key identification is unavailable.

What PostgreSQL versions are required for automated logical replication setup?

Automated logical replication setup requires PostgreSQL version 15, 16, or 17. You also need Claude Code integration to execute the configuration commands and manage the publication and subscription workflows.

How does logical replication differ from standard physical replication in PostgreSQL?

Logical replication differs from physical replication by copying data changes based on publication and subscription models rather than block-level file changes. This allows selective data replication using row filters and column lists across different database instances.

What are the limitations when applying row filters to PostgreSQL publications?

Row filters in PostgreSQL publications require careful handling of replica identity settings, especially for tables without primary keys. Limitations include ensuring filtered rows match subscription criteria and managing update operations correctly.