optimization

pg_qualstats: PostgreSQL index advisor

Summary: The pg_qualstats extension gathers statistics about predicates, helping find what indices are missing.

Continue reading

PostgreSQL Tutorial: Tuning work_mem setting

Summary: in this tutorial, you will learn how to tune work_mem setting in PostgreSQL.

Continue reading

hypopg: Hypothetical Indexes

Summary: A hypothetical, or virtual, index is an index that does not really exist, and therefore does not cost CPU, disk or any resource to create. They are useful to find out whether specific indexes can increase the performance for problematic queries, since you can discover if PostgreSQL will use these indexes or not without having to spend resources to create them.

Continue reading

PostgreSQL Tutorial: Logging lock waits and temp files

Summary: in this tutorial, you will learn how to log lock waits and temp files in PostgreSQL.

Continue reading

PostgreSQL Tutorial: Tune optimizer settings

Summary: in this tutorial, you will learn how to tune optimizer settings in PostgreSQL.

Continue reading

PostgreSQL Tutorial: Setting up Slow Query Logging

Summary: in this tutorial, you will learn how to setup slow query logging in PostgreSQL.

Continue reading

PostgreSQL Tutorial: Query analysis using pg_stat_statements

Summary: The pg_stat_statements extension exposes a lot of query statistics that will be helpful in finding slow queries that need to be optimized. In this tutorial, we shall see some example queries to view some information from pg_stat_statements.

Continue reading