Re: [patch] Add schema total size to psql \dn+

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Gilles Darold <gilles(dot)darold(at)dalibo(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [patch] Add schema total size to psql \dn+
Date: 2019-02-22 18:21:50
Message-ID: 18445.1550859710@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Wed, Feb 20, 2019 at 5:26 PM Gilles Darold <gilles(dot)darold(at)dalibo(dot)com> wrote:
>> The attached simple patch adds this feature. Is there any cons adding
>> this information?

> Well, it'll take time to compute, maybe a lot of time if the database
> is big and the server is busy. Not sure how serious that problem can
> get.

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ibrar Ahmed 2019-02-22 18:40:21 Temporal Table Proposal
Previous Message Shawn Debnath 2019-02-22 18:18:57 Re: Refactoring the checkpointer's fsync request queue