Hello Team,
In MYSQL you have:
mysqlcheck --host=localhost --port=3306 --user=userx --password=passwordx --databases database-x
https://mariadb.com/kb/en/library/mysqlcheck/
<https://mariadb.com/kb/en/library/mysqlcheck/>How to repair regular postgresql.
One example is when the DB goes to recovery mode.
Regards
Alonso Salas