pg_amcheck
Check for corruption in one or more PostgreSQL databases. tldr-pages
On several platforms
Several platforms
Check a specific database
pg_amcheck dbnameIdentifyCheck all databases
pg_amcheck --allIdentifyCheck databases matching the specified pattern
pg_amcheck --database patternIdentifyCheck specific tables within a database
pg_amcheck --table pattern dbnameIdentifyCheck specific schemas within a database
pg_amcheck --schema pattern dbnameIdentifyDisplay help
pg_amcheck --helpIdentify