The pg_stat_statements_reset() function can be executed by super and
members of the role pg_read_all_stats, but document doesn't say that.
This is found during the code review of another patch in [1].

Patch attached. This needs a backpatch till 10 where the default roles are
added.

[1] -
https://www.postgresql.org/message-id/flat/3368121530260059%40web21g.yandex.ru#655724e8e402df4f8b29fc91d44cf260

Regards,
Haribabu Kommi
Fujitsu Australia

Attachment: 0001-pg_stat_statements_reset-function-execution-permissi.patch
Description: Binary data

Reply via email to