mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
psql: Show tablespace size in \db+
Fabrízio de Royes Mello
This commit is contained in:
@ -176,6 +176,11 @@ describeTablespaces(const char *pattern, bool verbose)
|
|||||||
",\n spcoptions AS \"%s\"",
|
",\n spcoptions AS \"%s\"",
|
||||||
gettext_noop("Options"));
|
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)
|
if (verbose && pset.sversion >= 80200)
|
||||||
appendPQExpBuffer(&buf,
|
appendPQExpBuffer(&buf,
|
||||||
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
|
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
|
||||||
|
Reference in New Issue
Block a user