pgsql-announce
❮
pgclone 4.0.0 released
- Jump to comment-1Valeh Agayev via PostgreSQL Announce<announce-noreply@postgresql.org>Apr 27, 2026, 2:20 PM UTC# pgclone v4.0.0: Native SQL-Based Database Cloning and Data Masking
Baku, Azerbaijan — April 22, 2026
I am pleased to announce the release of pgclone version 4.0.0, a
PostgreSQL extension that clones databases, schemas, and objects directly via
SQL. It features built-in data masking, parallel background workers, and
full DDL support — with no dependency on `pgdump`, `pgrestore`, or external
shell scripts. pgclone is released as open source under the PostgreSQL
Licence.
## Description
pgclone provides a seamless way to clone PostgreSQL objects across
instances using nothing but SQL commands. By leveraging the PostgreSQL `COPY`
protocol and custom Background Workers (BGW), it offers a high-performance,
integrated alternative to traditional dump/restore workflows.
## Key Capabilities
- Native SQL Interface: Clone databases, schemas, and tables without
- Integrated Data Masking: Anonymize sensitive data (emails, names,leaving `psql` or managing shell scripts.
- Auto-Discovery: Automatically scan source schemas to identifyphone numbers, hashes) during the cloning process using built-in masking functions.
- High Performance: Parallel background workers handle concurrent tablesensitive columns and receive suggested masking rules.
- Full DDL Support: Preserves indexes, constraints (PK, UNIQUE, CHECK,cloning, with real-time progress tracking via `pgclone.jobs_view`.
- Flexible Conflict Resolution: Choose between `error`, `skip`,FK, EXCLUDE), triggers, views, and sequences.
- Cross-Version Compatibility: Tested on PostgreSQL 14, 15, 16, 17,`replace`, or `rename` strategies when objects already exist.
- Open Source: Distributed under the PostgreSQL Licence — the sameand 18.
## Links & Resourcespermissive licence used by PostgreSQL itself.
We welcome contributions and feedback from the community to help make pgclone
even better.
- GitHub: https://github.com/valehdba/pgclone
- Release v4.0.0: https://github.com/valehdba/pgclone/releases/tag/v4.0.0
- PGXN: https://pgxn.org/dist/pgclone/4.0.0/
- Usage Guide: https://github.com/valehdba/pgclone/blob/main/docs/USAGE.md
- Async Operations: https://github.com/valehdba/pgclone/blob/main/docs/ASYNC.md
- Architecture: https://github.com/valehdba/pgclone/blob/main/docs/ARCHITECTURE.md
- Manual Testing: https://github.com/valehdba/pgclone/blob/main/docs/TESTING_MANUAL.md
---