Move the options column of \db+ before the description

The convention is to have the description field at the end.

Noted by Tom Lane
This commit is contained in:
Magnus Hagander 2014-01-26 21:13:57 +01:00
parent cae10ca27e
commit f2795f8b53

View File

@ -171,16 +171,16 @@ describeTablespaces(const char *pattern, bool verbose)
printACLColumn(&buf, "spcacl"); 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) if (verbose && pset.sversion >= 90000)
appendPQExpBuffer(&buf, appendPQExpBuffer(&buf,
",\n spcoptions AS \"%s\"", ",\n spcoptions AS \"%s\"",
gettext_noop("Options")); 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, appendPQExpBufferStr(&buf,
"\nFROM pg_catalog.pg_tablespace\n"); "\nFROM pg_catalog.pg_tablespace\n");