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.