PostgreSQL 12, pg_stat_statements_reset for userid, queryid and dbid
PostgreSQL 12 will give you more control on resetting statistics gathered by pg_stat_statements. When you check the documentation for PostgreSQL 11 (as linked in the previous sentence) you will see that the function has the following signature: pg_stat_statements_reset() returns void This means your only choice is to reset all the statistics. Today this commit landed and this will give you…



