aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2014-01-26 21:13:57 +0100
committerMagnus Hagander <magnus@hagander.net>2014-01-26 21:16:02 +0100
commitf2795f8b5393005ab2d2438fadce116b032bea6e (patch)
treec636d621ad60cc5eab1feed4b1a38c6485ada156 /src
parentcae10ca27e5d478353b9b053073e5f2a1cf97659 (diff)
downloadpostgresql-f2795f8b5393005ab2d2438fadce116b032bea6e.tar.gz
postgresql-f2795f8b5393005ab2d2438fadce116b032bea6e.zip
Move the options column of \db+ before the description
The convention is to have the description field at the end. Noted by Tom Lane
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/describe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 43f1a1c12dd..3cb8df2bb72 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -171,16 +171,16 @@ describeTablespaces(const char *pattern, bool verbose)
printACLColumn(&buf, "spcacl");
}
- if (verbose && pset.sversion >= 80200)
- appendPQExpBuffer(&buf,
- ",\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"));
+ if (verbose && pset.sversion >= 80200)
+ appendPQExpBuffer(&buf,
+ ",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
+ gettext_noop("Description"));
+
appendPQExpBufferStr(&buf,
"\nFROM pg_catalog.pg_tablespace\n");