1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Add pg_stat_reset_shared('bgwriter') to reset the cluster-wide shared

statistics of the bgwriter.

Greg Smith
This commit is contained in:
Magnus Hagander
2010-01-19 14:11:32 +00:00
parent 4f15699d70
commit 7e40cdc075
6 changed files with 111 additions and 7 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.73 2009/11/29 18:14:30 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.74 2010/01/19 14:11:30 mha Exp $ -->
<chapter id="monitoring">
<title>Monitoring Database Activity</title>
@ -918,6 +918,17 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
(requires superuser privileges)
</entry>
</row>
<row>
<entry><literal><function>pg_stat_reset_shared</function>(text)</literal></entry>
<entry><type>void</type></entry>
<entry>
Reset some of the shared statistics counters for the database cluster to
zero (requires superuser privileges). Calling
<literal>pg_stat_reset_shared('bgwriter')</> will zero all the values shown by
<structname>pg_stat_bgwriter</>.
</entry>
</row>
</tbody>
</tgroup>
</table>