I want to compare two PostgreSQL database dumps.
The output of pg_dump is not sorted. This makes tools like diff useless.
Background:
We update the way we set up a custom database. After our refactoring the database should be equal to the old.
How to compare two PostgreSQL database dumps?