PostgreSQL – Health Check Scripts

Here are some scripts that you can use to check the health of your PostgreSQL DB servers.

Check Uptime

SELECT current_timestamp - pg_postmaster_start_time();

Monitor cache hit ratio

Tells how often your data is served from memory vs having to go to disk. 99% is a good metric for performance. Read More

Knowledge worth sharing...Share on linkedin
Linkedin
Share on facebook
Facebook
Share on google
Google
Share on twitter
Twitter
Bookmark the permalink.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *