I use Heroku Postgres and want to see what the effect of adding additional indexes to my database is.
I am querying pg_stat_user_tables to find out what percentage of queries are using indexes, but I think I have been using statistics since I created the database.
I understand that running SELECT pg_stat_reset(); will reset these statistics, but when I try to run this in the pg: psql console, I get an error:
ERROR: must be superuser to reset statistics counters
Is there any other way to achieve this using the Heroku Postgres production database?
Dan
source share