Re: [PATCH] Add size/acl information when listing databases - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Add size/acl information when listing databases
Date
Msg-id 2015.1200794819@sss.pgh.pa.us
Whole thread Raw
In response to [PATCH] Add size/acl information when listing databases  (Andrew Gilligan <andy@tcpd.net>)
Responses Re: [PATCH] Add size/acl information when listing databases  (Andrew Gilligan <andy@tcpd.net>)
List pgsql-hackers
Andrew Gilligan <andy@tcpd.net> writes:
> Attached is a rather small change to src/bin/psql/describe.c to
> show database size and permissions when using the psql \l command.

Doesn't this slow down \l by several orders of magnitude?  There's
also the small problem that the query will fail entirely if there are
any databases the current user cannot connect to.

The ACL part is fine, the database size not so much.  I could see
relegating the size to a \l+ option, but you still have to deal with the
permissions problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Gilligan
Date:
Subject: [PATCH] Add size/acl information when listing databases
Next
From: Tom Lane
Date:
Subject: Re: message string fixes