Allow pg_read_all_stats to access all stats views again
authorMagnus Hagander <[email protected]>
Mon, 20 Apr 2020 10:53:40 +0000 (12:53 +0200)
committerMagnus Hagander <[email protected]>
Mon, 20 Apr 2020 10:53:40 +0000 (12:53 +0200)
commit7e4e574744c13aac613909a59bf38ef5aae5bd8c
treef01b8c3822726ed1694413c838907137b536c2d8
parent9aece5cd05f1b21b67eac0dc4f105853eec3e4eb
Allow pg_read_all_stats to access all stats views again

The views pg_stat_progress_* had not gotten the memo that
pg_read_all_stats is supposed to be able to read all statistics. Also
make a pass over all text-returning pg_stat_xyz functions that could
return "insufficient privilege" and make sure they also respect
pg_read_all_status.

Reported-by: Andrey M. Borodin
Reviewed-by: Andrey M. Borodin, Kyotaro Horiguchi
Discussion: https://postgr.es/m/13145F2F-8458-4977-9D2D-7B2E862E5722@yandex-team.ru
src/backend/utils/adt/pgstatfuncs.c