mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add stats for min, max, mean, stddev times to pg_stat_statements.
The new fields are min_time, max_time, mean_time and stddev_time. Based on an original patch from Mitsumasa KONDO, modified by me. Reviewed by Petr Jelínek.
This commit is contained in:
@ -86,6 +86,34 @@
|
||||
<entry>Total time spent in the statement, in milliseconds</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>min_time</structfield></entry>
|
||||
<entry><type>double precision</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Minimum time spent in the statement, in milliseconds</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>max_time</structfield></entry>
|
||||
<entry><type>double precision</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Maximum time spent in the statement, in milliseconds</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>mean_time</structfield></entry>
|
||||
<entry><type>double precision</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Mean time spent in the statement, in milliseconds</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>stddev_time</structfield></entry>
|
||||
<entry><type>double precision</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Population standard deviation of time spent in the statement, in milliseconds</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>rows</structfield></entry>
|
||||
<entry><type>bigint</type></entry>
|
||||
|
Reference in New Issue
Block a user