]> granicus.if.org Git - postgresql/commit
Hide other user's pg_stat_ssl rows
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 20 Feb 2019 10:38:44 +0000 (11:38 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Feb 2019 18:51:52 +0000 (19:51 +0100)
commitf9692a769b16f53be80f819fa5ee91e28dc7683a
treec584b5984239528a55aa6d26639fcbd1523f5b05
parent213eae9b8a8a6b2ce3b0e5f5dc86d4b267096398
Hide other user's pg_stat_ssl rows

Change pg_stat_ssl so that an unprivileged user can only see their own
rows; other rows will be all null.  This makes the behavior consistent
with pg_stat_activity, where information about where the connection
came from is also restricted.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/63117976-d02c-c8e2-3aef-caa31a5ab8d3%402ndquadrant.com
src/backend/utils/adt/pgstatfuncs.c