Skip to content

Commit f0a45cc

Browse files
committed
Clean up \? psql display.
1 parent 83c30df commit f0a45cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/psql/help.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ slashUsage(PsqlSettings *pset)
177177

178178
/* if you add/remove a line here, change the row test above */
179179
fprintf(fout, " \\? -- help\n");
180-
fprintf(fout, " \\c[onnect] [<dbname>|- [<user>|?]] -- connect to new database (currently '%s')\n", PQdb(pset->db));
181-
fprintf(fout, " \\copy [binary] <table> [with oids] {from|to} <fname> [with delimiters '<char>']\n");
180+
fprintf(fout, " \\c[onnect] [<dbname>|- [<user>|?]] -- connect to new database (now '%s')\n", PQdb(pset->db));
181+
fprintf(fout, " \\copy [binary] <table> [with oids] {from|to} <fname>[using delimiters '<char>']\n");
182182
fprintf(fout, " \\copyright -- show PostgreSQL copyright\n");
183183
fprintf(fout, " \\d -- list tables, views, and sequences\n");
184-
fprintf(fout, " \\distvS -- list only indices/sequences/tables/views/system tables\n");
184+
fprintf(fout, " \\d{i|s|t|v|S}-- list only indices/sequences/tables/views/system tables\n");
185185
fprintf(fout, " \\da -- list aggregates\n");
186186
fprintf(fout, " \\dd [<object>]- list comment for table, type, function, or operator\n");
187187
fprintf(fout, " \\df -- list functions\n");
@@ -202,8 +202,8 @@ slashUsage(PsqlSettings *pset)
202202
fprintf(fout, " \\r -- reset (clear) the query buffer\n");
203203
fprintf(fout, " \\s [<fname>] -- print history or save it in <fname>\n");
204204
fprintf(fout, " \\set <var> [<value>] -- set/unset internal variable\n");
205-
fprintf(fout, " \\t -- don't show table headers or footers (currently %s)\n", ON(pset->popt.topt.tuples_only));
206-
fprintf(fout, " \\x -- toggle expanded output (currently %s)\n", ON(pset->popt.topt.expanded));
205+
fprintf(fout, " \\t -- don't show table headers or footers (now %s)\n", ON(pset->popt.topt.tuples_only));
206+
fprintf(fout, " \\x -- toggle expanded output (now %s)\n", ON(pset->popt.topt.expanded));
207207
fprintf(fout, " \\w <fname> -- write current query buffer to a file\n");
208208
fprintf(fout, " \\z -- list table access permissions\n");
209209
fprintf(fout, " \\! [<cmd>] -- shell escape or command\n");

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