Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2795f8

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 parentcae10ca commitf2795f8

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)

[8]ページ先頭

©2009-2025 Movatter.jp