Simple queries and tests replication lag are merely a Distinctive scenario of managing arbitrary SQL queries for a health check, so we just focused on this just one and executed the others being a form of syntactic https://www.ralantech.com/postgresql-database-health-check-consulting-service/