重启服务并不能重置postgresql的统计计数器,比如pg_stat_database的deadlocks计数器,可以使用select pg_stat_reset();来重置各种统计计数器。

Leave a Reply

Your email address will not be published. Required fields are marked *