Comparing two postgres dump files

Rohita Khatiwada picture Rohita Khatiwada · Apr 19, 2011 · Viewed 7.6k times · Source

How to compare postgres dump files? I have two dump files, dump1 and dump2 . And I want to compare these two dump files.

Any help will be appreciated..

Thank you

Answer

Bhargav Modi picture Bhargav Modi · Dec 1, 2014

You can use beyond compare if windows is been used and use kompare if linux(fedora) is been used also if linux is used than you can use different command like sdiff example is provided in this link, other commands are diff,comm -23 filedump1 fuledump2,sort filedump1 > filedump1.sorted sort fuledump2 > fuledump2.sorted diff filedump1.sorted fuledump2.sorted etc are utilities to compare text in files