PostgreSQL Internals and Performance Optimization
PostgreSQL Internals and Performance Optimization
and
Performance Optimization
Backend Process
Statistics collector Statistics data (pg_stat_activity, pg_stat_user_indexes etc.) required for troubleshooting PostgreSQL more
intuitively is collected by the process Statistics Collector
WAL writer Process to flush WAL data from WAL buffer to a persistent storage / disk
Background writer Process to flush dirty pages in shared buffer pool to a persistent storage / disk ( In PostgreSQL 9.1 or earlier,
Background writer was also accountable for checkpoint process )
Autovacuum launcher Process involved in periodical auto vacuum activity
Backend Process
Handles
incoming Backend Process
connections
Database Cluster
Backend Process
On CentOS / RedHat:
sudo yum install postgresql-contrib
SELECT campaign_master.campaign_category,
campaign_master.campaign_id,
campaign_master.publisher_id
FROM campaign_master,
publisher_master
WHERE campaign_master.publisher_id =publisher_master.publisher_id
AND
publisher_master.publisher_category = ‘?’;
# In the SQL above we have captured queries on “Response Time” , The total latency of individual
queries is reported in minutes and average latency on milliseconds.