Resets some cluster-wide statistics counters to zero, depending on the
- argument. The argument can be bgwriter to reset
- all the counters shown in
- the pg_stat_bgwriter view,
- checkpointer to reset all the counters shown in
- the pg_stat_checkpointer view,
- archiver to reset all the counters shown in
- the pg_stat_archiver view,
- io to reset all the counters shown in the
- pg_stat_io view,
- wal to reset all the counters shown in the
- pg_stat_wal view or
- recovery_prefetch to reset all the counters shown
- in the pg_stat_recovery_prefetch view.
- is not specified, all the counters from the views listed above are
- reset.
+ argument.
target can be:
+
+
+ archiver: Reset all the counters shown in the
+ pg_stat_archiver view.
+
+
+
+ bgwriter: Reset all the counters shown in the
+ pg_stat_bgwriter view.
+
+
+
+ checkpointer: Reset all the counters shown in the
+ pg_stat_checkpointer view.
+
+
+
+ io: Reset all the counters shown in the
+ pg_stat_io view.
+
+
+
+ recovery_prefetch: Reset all the counters shown in
+ the pg_stat_recovery_prefetch view.
+
+
+
+ wal: Reset all the counters shown in the
+ pg_stat_wal view.
+
+
+
+ NULL or not specified: All the counters from the
+ views listed above are reset.
+
+
+
This function is restricted to superusers by default, but other users