Skip to content

Commit f2795f8

Browse files
committed
Move the options column of \db+ before the description
The convention is to have the description field at the end. Noted by Tom Lane
1 parent cae10ca commit f2795f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/psql/describe.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,16 @@ describeTablespaces(const char *pattern, bool verbose)
171171
printACLColumn(&buf, "spcacl");
172172
}
173173

174-
if (verbose && pset.sversion >= 80200)
175-
appendPQExpBuffer(&buf,
176-
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
177-
gettext_noop("Description"));
178-
179174
if (verbose && pset.sversion >= 90000)
180175
appendPQExpBuffer(&buf,
181176
",\n spcoptions AS \"%s\"",
182177
gettext_noop("Options"));
183178

179+
if (verbose && pset.sversion >= 80200)
180+
appendPQExpBuffer(&buf,
181+
",\n pg_catalog.shobj_description(oid, 'pg_tablespace') AS \"%s\"",
182+
gettext_noop("Description"));
183+
184184
appendPQExpBufferStr(&buf,
185185
"\nFROM pg_catalog.pg_tablespace\n");
186186

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