Anything like a hash for Postgresql databases?
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.