Postgresql 类似于 SQL Server 查询存储

Arj*_*ani 1 postgresql performance monitoring postgresql-performance

是否有任何可用于 Postgresql 的类似于 SQL Server 查询存储的扩展。这样它可以帮助识别性能瓶颈。

SQL Server 查询存储提供有关查询执行次数、每个查询的资源消耗的信息。https://learn.microsoft.com/en-us/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store?view=sql-server-ver15提供了有关查询存储的更多详细信息。

小智 5

是的,有这样一个扩展:pg_stat_statements

pg_stat_statements 模块提供了一种跟踪服务器执行的所有 SQL 语句的执行统计信息的方法。

PoWA等工具使用此扩展并提供您可能感兴趣的其他性能指标。