From bce39463927022ecb4ae7a515266324c5fbdd3d8 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 27 Apr 2026 02:11:17 -0700 Subject: [PATCH] Added link to PgHero [skip ci] --- README.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index 58db7db..316674e 100644 --- a/README.md +++ b/README.md @@ -757,19 +757,7 @@ Scale horizontally with [replicas](https://www.postgresql.org/docs/current/hot-s ## Monitoring -Monitor performance with [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html) (be sure to add it to `shared_preload_libraries`). - -```sql -CREATE EXTENSION pg_stat_statements; -``` - -Get the most time-consuming queries with: - -```sql -SELECT query, calls, ROUND((total_plan_time + total_exec_time) / calls) AS avg_time_ms, - ROUND((total_plan_time + total_exec_time) / 60000) AS total_time_min - FROM pg_stat_statements ORDER BY total_plan_time + total_exec_time DESC LIMIT 20; -``` +Use existing tools like [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html) or [PgHero](https://github.com/ankane/pghero) to monitor performance. Monitor recall by comparing results from approximate search with exact search.