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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy