pg_stats entries visibility with RLS enabled - Mailing list pgsql-docs

From PG Doc comments form
Subject pg_stats entries visibility with RLS enabled
Date
Msg-id 170205394886.398198.4628897348940629963@wrigleys.postgresql.org
Whole thread Raw
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/view-pg-stats.html
Description:

First paragraph for the pg_stats view says: "This view allows access only to
rows of pg_statistic that correspond to tables the user has permission to
read, and therefore it is safe to allow public read access to this view."

I think it would be worth to mention that with RLS enabled for the table the
rows will also be hidden to not reveal values from the rows not visible to
the user.

    Wojtek

pgsql-docs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Where is using a table name as a "row value" documented?
Next
From: PG Doc comments form
Date:
Subject: unclear wording re: spoofing prevention on network connections