ankane

pgsync

ankane

Sync data from one Postgres database to another

AI 简介

pgsync 是一个用于在两个 PostgreSQL 数据库间高效同步数据的命令行工具。它支持并行传输表、按条件筛选行(如 where 子句)、同步指定表/组/模式、处理 schema 差异(如列缺失或冗余),并提供 --preserve/--truncate 等数据覆盖策略;内置安全机制确保敏感数据不出服务器。适用于开发环境数据初始化、测试数据库刷新、跨实例数据迁移及影子库同步等场景。

Ruby
MIT License
3.5k
Stars
218
Forks
34
Watchers
10
Issues

Star 增长

今日0
近 7 天0
近 30 天+2
综合评分29.02
默认分支master