How to check difference between two databases in P

2019-01-16 02:36发布

Is it possible to compare two databases with identical structure? Let say that I have two databases DB1 and DB2 and I want to check if there is a difference in data between them.

7条回答
混吃等死
2楼-- · 2019-01-16 03:05

Another free app:

DBeaver - you can select databases, tables, etc to compare with each other

查看更多
We Are One
3楼-- · 2019-01-16 03:12

I recommend DB Best Database Compare Suite - trial version is only for 2 days, but it allows you to compare scheme and data.

Read more on official product website.

查看更多
Root(大扎)
4楼-- · 2019-01-16 03:14

Try using pg_dump on both databases and diffing the files.

查看更多
霸刀☆藐视天下
5楼-- · 2019-01-16 03:17

I'm working on a comprehensive comparison tool for Postgres. It will be free while in beta.

Postgres Compare

Initially this is just schema (DDL) comparison but we will probably expand to data also. I believe this is a tool that a lot of shops require in order to move from their current RDBMS without having to also change how their development environments, operations etc work too.

查看更多
虎瘦雄心在
6楼-- · 2019-01-16 03:18
聊天终结者
7楼-- · 2019-01-16 03:20

The best tool which I ever seen https://pythonhosted.org/Pyrseas/

  1. Get dump from database A dbtoyaml ...

  2. Generate migration from A => B yamltodb ... [file generated in step 1]

查看更多
登录 后发表回答