On Fri, Feb 22, 2019 at 7:22 PM Tom Lane <t...@sss.pgh.pa.us> wrote:
>
> Is there any permissions issue involved here?  I'd be a bit worried
> about whether \dn+ could fail, or deliver misleading answers, when
> run by a user without permissions on (some) tables.  Also, even if
> we allow people to get size info on tables they can't read today,
> having this feature would be a roadblock to tightening that in
> the future.

Gilles' patch is using pg_total_relation_size(), so there's no
permission check at all.  Also AFAICS this function even allows any
user to get the size of any other user backend's temporary table.

Reply via email to