optimization

PostgreSQL Tutorial: Performance optimization

This chapter explains how to optimize PostgreSQL performance and provides examples.

Continue reading

PostgreSQL Tutorial: Enabling Linux Huge Pages

Summary: Using Huge Pages reduces the memory page table size of PostgreSQL processes and cuts down CPU overhead spent on memory management, thereby improving overall database performance.

Continue reading

PostgreSQL Tutorial: Tuning I/O Performance with pg_stat_io

Summary: In this tutorial, you will learn about pg_stat_io view, including byte-level I/O statistics, WAL tracking, and comprehensive real-world use cases for better database performance tuning.

Continue reading

PostgreSQL Tutorial: Partitioned table statistics

Summary: in this tutorial, you will learn how PostgreSQL collects partitioned table statistics and how they affect PostgreSQL’s estimates.

Continue reading

PostgreSQL Tutorial: Row count estimates in EXPLAIN

Summary: in this tutorial, you will learn what’s ’estimated rows’ in EXPLAIN output all about.

Continue reading

PostgreSQL Tutorial: Common queries with pg_stat_statements

Summary: In this tutorial, we will give some example queries you can use with pg_stat_statements as a starting point for different challenges.

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

PostgreSQL Tutorial: EXPLAIN Scan Nodes (2)

Summary: In this tutorial, you will learn various types of scan “nodes” / operations that you might see in explain plans.

Continue reading

PostgreSQL Tutorial: Tune query with EXPLAIN BUFFERS

Summary: in this tutorial, you will learn how to tune query with EXPLAIN BUFFERS in PostgreSQL.

Continue reading

PostgreSQL Tutorial: EXPLAIN Query Plan Fields Glossary

Summary: In this tutorial, you will learn various basic fields that you might see in explain plans.

Continue reading