mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 10:51:19 +02:00
psql: Show tablespace size in \db+
Fabrízio de Royes Mello
This commit is contained in:
parent
346d7be184
commit
ee80f043bc
@ -176,6 +176,11 @@ describeTablespaces(const char *pattern, bool verbose)
|
||||
",\n spcoptions AS \"%s\"",
|
||||
gettext_noop("Options"));
|
||||
|
||||
if (verbose && pset.sversion >= 90200)
|
||||
appendPQExpBuffer(&buf,
|
||||
",\n pg_catalog.pg_size_pretty(pg_catalog.pg_tablespace_size(oid)) AS \"%s\"",
|
||||
gettext_noop("Size"));
|
||||
|
||||
if (verbose && pset.sversion >= 80200)
|
||||
appendPQExpBuffer(&buf,
|
||||
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
|
||||
|
Loading…
Reference in New Issue
Block a user