Allow pg_read_all_stats to access all stats views again
authorMagnus Hagander <magnus@hagander.net>
Mon, 20 Apr 2020 10:53:40 +0000 (12:53 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 20 Apr 2020 10:57:24 +0000 (12:57 +0200)
commitd0bb66572e3326b40515cbf62ec11b3339bbf914
treebf0eae4e46bf967b2a80459dbe929f6d2b0d3178
parent63ecdaf758c56c183ed76c02e169c9c5504e6693
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