Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ee80f04

Browse files
committed
psql: Show tablespace size in \db+
Fabrízio de Royes Mello
1 parent 346d7be commit ee80f04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/psql/describe.c

+5
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ describeTablespaces(const char *pattern, bool verbose)
176176
",\n spcoptions AS \"%s\"",
177177
gettext_noop("Options"));
178178

179+
if (verbose && pset.sversion >= 90200)
180+
appendPQExpBuffer(&buf,
181+
",\n pg_catalog.pg_size_pretty(pg_catalog.pg_tablespace_size(oid)) AS \"%s\"",
182+
gettext_noop("Size"));
183+
179184
if (verbose && pset.sversion >= 80200)
180185
appendPQExpBuffer(&buf,
181186
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",

0 commit comments

Comments
 (0)