How to verify data integrity of data folders after data recovery in MySQL and PostgreSQL?
As far as I know, the only way in PostgreSQL is to run something like

pg_dumpall &gt;/dev/null


which will scream if it encounters table corruption.

However, that won't test index integrity. For that, PostgreSQL v11 has the amcheck extension.