How to check difference between two databases in PostgreSQL?

不打扰是莪最后的温柔 提交于 2019-11-28 02:52:24
a_horse_with_no_name

Try using pg_dump on both databases and diffing the files.

Another free app:

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

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

PostgresCompare

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.

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]

I'm also looking for a tool to compare data in databases (in particular I was interested in comparing Redshift DB). So far the best I found is https://www.dbbest.com/products/database-compare-suite/#close. Unfortunately the free trial expires after one day.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!