Anything like a hash for Postgresql databases? I have an export process I want to check. I want to verify that source and destination databases are equal. There are about 25000 rows, and schema is the same.

Is there a way to somehow "hash" the database so that two databases containing the same data are confirmed equal?

I guess pg_dump output may differ even if data are same.
It sounds like you might be looking for pg_comparator.

I haven't used it myself, but I've got some database check/compare work to do soon, and it's one of the options I need to look into as a starting point.