basic queries and tests replication lag are merely a Distinctive case of managing arbitrary SQL queries for a health check, so we just centered on this a person and applied the Many others to be a kind of syntactic https://www.ralantech.com/postgresql-database-health-check-consulting-service/