Sunday, 21 January 2024

PostgreSQL: Important Statistics Views for Monitoring the Server

 In this post, I am sharing few important system or statistics views which we can use for monitoring the PostgreSQL Server.

We should monitor the different statistics of the server which help us for improving the overall database performance.

Below are few important views:

Return the running queries/connections information:

Return the SSL information for each connection:

Check the database statistics:

Check the table statistics:

Check the system table statistics:

Check the index statistics:

Check the user functions statistics:

No comments:

Post a Comment

Master and Slave - Sync check - PostgreSQL

  1) Run the below Query on Primary:- SELECT     pid,     usename,     application_name,     client_addr,     state,     sync_state,     sen...