If your check is profitable the container will probably be marked as healthy. until finally then it's going to continue being within an unhealthy condition.
Finding and addressing the efficiency bottlenecks, confirming https://www.ralantech.com/postgresql-database-health-check-consulting-service/