Skip to content

Commit 3a4394b

Browse files
committed
Added comment [skip ci]
1 parent 2868178 commit 3a4394b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/pghero/methods/query_stats.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def disable_query_stats
5656
true
5757
end
5858

59+
# resets query stats for the entire instance
60+
# with Postgres 12+, it's possible to reset stats
61+
# for a specific database (or user or query hash)
5962
def reset_query_stats(database: nil, user: nil, query_hash: nil, raise_errors: false)
6063
if database || user || query_hash
6164
raise PgHero::Error, "Requires PostgreSQL 12+" if server_version_num < 120000

0 commit comments

Comments
 (0)