Hi Jacob,
This is the same problem as being able to monitor the total number of processed queries, or the total query processing time.
The only solution I'm aware of is to set
pg_stat_statements.max higher than the distinct number of normalized queries you expect.
As soon as
pg_stat_statements gets above this number you lose information. To increase
max you'd need a restart, which isn't ideal but I can't see any way round that.
It wouldn't help you much - but it would be great for monitoring if there was a pg_stat_statements_agg table which presented total counters.
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.