]> granicus.if.org Git - postgresql/commit
Adjust timing units in pg_stat_statements.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2012 20:03:57 +0000 (16:03 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2012 20:03:57 +0000 (16:03 -0400)
commit93f94e356d47ea20ca7c2fcb65cbb746049fe4d1
treedbcda7c998055cdd32363b8c902d31932a03b59e
parentcdbad241f41362aaf09f913722a541e04e048742
Adjust timing units in pg_stat_statements.

Display total time and I/O timings in milliseconds, for consistency with
the units used for timings in the core statistics views.  The columns
remain of float8 type, so that sub-msec precision is available.  (At some
point we will probably want to convert the core views to use float8 type
for the same reason, but this patch does not touch that issue.)

This is a release-note-requiring change in the meaning of the total_time
column.  The I/O timing columns are new as of 9.2, so there is no
compatibility impact from redefining them.

Do some minor copy-editing in the documentation, too.
contrib/pg_stat_statements/pg_stat_statements.c
doc/src/sgml/pgstatstatements.sgml