How to compare data between two databases in PostgreSQL?

前端 未结 9 822
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 08:18

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

相关标签:
9条回答
  • 2020-12-07 08:57

    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.

    0 讨论(0)
  • 2020-12-07 08:59

    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]

    0 讨论(0)
  • 2020-12-07 09:01

    Try using pg_dump on both databases and diffing the files.

    0 讨论(0)
提交回复
热议问题