projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cec8394
)
Include tablespace options in verbose output of \db
author
Magnus Hagander
<
[email protected]
>
Sun, 26 Jan 2014 17:11:15 +0000
(18:11 +0100)
committer
Magnus Hagander
<
[email protected]
>
Sun, 26 Jan 2014 17:42:08 +0000
(18:42 +0100)
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index 0d4b151679a3b1169824d892084cfd32c9e5b0f3..43f1a1c12dd2dd7f829733b6f08aefaf377633b1 100644
(file)
--- a/
src/bin/psql/describe.c
+++ b/
src/bin/psql/describe.c
@@
-176,6
+176,11
@@
describeTablespaces(const char *pattern, bool verbose)
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
gettext_noop("Description"));
+ if (verbose && pset.sversion >= 90000)
+ appendPQExpBuffer(&buf,
+ ",\n spcoptions AS \"%s\"",
+ gettext_noop("Options"));
+
appendPQExpBufferStr(&buf,
"\nFROM pg_catalog.pg_tablespace\n");