---
title: "pg_stat_statements — Database Glossary | Xata"
description: "A PostgreSQL extension tracking planning and execution statistics for all SQL statements. Records call count, total/mean/min/max time, rows returned, an..."
source: "https://xata.io/glossary/pg-stat-statements"
---

# pg_stat_statements

Monitoring

A PostgreSQL extension tracking planning and execution statistics for all SQL statements. Records call count, total/mean/min/max time, rows returned, and shared buffer hits. Essential for identifying slow queries.

[← Back to glossary](/glossary)
