diff --git a/src/postgres/contrib/pg_stat_statements/pg_stat_statements.c b/src/postgres/contrib/pg_stat_statements/pg_stat_statements.c index 59830f01f530..5432679e1222 100644 --- a/src/postgres/contrib/pg_stat_statements/pg_stat_statements.c +++ b/src/postgres/contrib/pg_stat_statements/pg_stat_statements.c @@ -1950,6 +1950,9 @@ pgss_store(const char *query, uint64 queryId, Datum pg_stat_statements_reset_1_7(PG_FUNCTION_ARGS) { + if (YBIsQueryDiagnosticsEnabled()) + *yb_pgss_last_reset_time = GetCurrentTimestamp(); + Oid userid; Oid dbid; uint64 queryid;