macOS
brew install pgcopydblocal Homebrew formula metadata
brew / rank 6388
Copy a Postgres database to a target Postgres server. Version 0.18 via Homebrew; verified 2026-09-13. Also installable with debian: sudo apt install pgcopydb.
install
brew install pgcopydblocal Homebrew formula metadata
sudo apt install pgcopydbDebian stable package indexes · pgcopydb · source: deb.debian.org
nix profile install nixpkgs#pgcopydbnixpkgs package indexes · pkgs/by-name/pg/pgcopydb/package.nix · source: api.github.com
overview
Copy a Postgres database to a target Postgres server
history
pgcopydb is a PostgreSQL migration utility that copies a database between servers using parallel and streaming techniques, with optional change data capture to reduce cutover downtime.
Dimitri Fontaine created pgcopydb to automate fast PostgreSQL-to-PostgreSQL database copies while bypassing intermediate table-data files. The project later expanded beyond its base-copy workflow into change data capture, comparison, filtering, and extension-aware migration.
Version 0.8 introduced the --follow change-data-capture workflow in 2022. Subsequent releases refined logical decoding, same-table concurrency, internal job coordination, resumability, and migration reliability.
pgcopydb is distributed through Homebrew, Debian, Ubuntu, and Nix packaging channels. Its documentation also describes tagged container images, supporting use in repeatable migration environments.
Operators set source and target PostgreSQL connection URIs and run pgcopydb clone, optionally tuning table and index worker counts. Advanced workflows use exported snapshots and --follow to replay changes made during the base copy.
pgcopydb occupies the practical space between a simple pg_dump/pg_restore pipeline and a full migration platform. It is notable for combining parallel COPY, concurrent index creation, resumable internal catalogs, and optional logical-decoding-based change capture in one command-line package.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pgcopydb | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/dimitri/pgcopydb
install metadata
| Package key | brew:pgcopydb |
|---|---|
| Version | 0.18 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pgcopydb |
| Homepage | https://github.com/dimitri/pgcopydb |
| Repository | https://github.com/dimitri/pgcopydb |
| License | PostgreSQL |
| Source archive | https://github.com/dimitri/pgcopydb/archive/refs/tags/v0.18.tar.gz |
| Last updated | 2026-09-13T11:25:59Z |
| Pulse | updated |
| Dependencies | bdw-gc, libpq |
| Build dependencies | sphinx-doc |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | Pgcopydb searches for PostgreSQL command-line tools in your system's PATH environment variable. To use a specific PostgreSQL version's command-line tools, ensure they are accessible in your PATH. When no PostgreSQL tools are found in PATH, pgcopydb defaults to using the command-line tools provided by the libpq formula. |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pgcopydb |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pgcopydb 0.17-1
Copy an entire PostgreSQL database from source to target
https://github.com/dimitri/pgcopydb
sudo apt install pgcopydbpgcopydb
nix profile install nixpkgs#pgcopydbpgcopydb 0.15-1
Copy an entire PostgreSQL database from source to target
https://github.com/dimitri/pgcopydb
sudo apt install pgcopydbsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.