Skip to content

Commit 5a75ad5

Browse files
committed
Update psql \? to show file rather than "fname".
1 parent 6706194 commit 5a75ad5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bin/psql/help.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.26 2000/04/24 22:41:43 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.27 2000/05/09 19:08:36 momjian Exp $
77
*/
88
#include "postgres.h"
99
#include "help.h"
@@ -208,30 +208,30 @@ slashUsage(void)
208208
fprintf(fout, " \\df list functions\n");
209209
fprintf(fout, " \\do list operators\n");
210210
fprintf(fout, " \\dT list data types\n");
211-
fprintf(fout, " \\e [fname] edit the current query buffer or <fname> with external editor\n");
211+
fprintf(fout, " \\e [file] edit the current query buffer or [file] with external editor\n");
212212
fprintf(fout, " \\echo <text> write text to stdout\n");
213213
fprintf(fout, " \\encoding <encoding> set client encoding\n");
214214
fprintf(fout, " \\f <sep> change field separator\n");
215-
fprintf(fout, " \\g [fname] send query to backend (and results in <fname> or |pipe)\n");
215+
fprintf(fout, " \\g [file] send query to backend (and results in [file] or |pipe)\n");
216216
fprintf(fout, " \\h [cmd] help on syntax of sql commands, * for all commands\n");
217217
fprintf(fout, " \\H toggle HTML mode (currently %s)\n",
218218
ON(pset.popt.topt.format == PRINT_HTML));
219-
fprintf(fout, " \\i <fname> read and execute queries from filename\n");
219+
fprintf(fout, " \\i <file> read and execute queries from <file>\n");
220220
fprintf(fout, " \\l list all databases\n");
221221
fprintf(fout, " \\lo_export, \\lo_import, \\lo_list, \\lo_unlink\n"
222222
" large object operations\n");
223-
fprintf(fout, " \\o [fname] send all query results to <fname>, or |pipe\n");
223+
fprintf(fout, " \\o [file] send all query results to [file], or |pipe\n");
224224
fprintf(fout, " \\p show the content of the current query buffer\n");
225225
fprintf(fout, " \\pset {format|border|expanded|fieldsep|recordsep|tuples_only|title|tableattr\n"
226226
" |pager} set table output options\n");
227227
fprintf(fout, " \\q quit psql\n");
228228
fprintf(fout, " \\qecho <text> write text to query output stream (see \\o)\n");
229229
fprintf(fout, " \\r reset (clear) the query buffer\n");
230-
fprintf(fout, " \\s [fname] print history or save it in <fname>\n");
230+
fprintf(fout, " \\s [file] print history or save it in [file]\n");
231231
fprintf(fout, " \\set <var> <value> set internal variable\n");
232232
fprintf(fout, " \\t don't show table headers or footers (currently %s)\n", ON(pset.popt.topt.tuples_only));
233233
fprintf(fout, " \\unset <var> unset (delete) internal variable\n");
234-
fprintf(fout, " \\w <fname> write current query buffer to a file\n");
234+
fprintf(fout, " \\w <file> write current query buffer to a <file>\n");
235235
fprintf(fout, " \\x toggle expanded output (currently %s)\n", ON(pset.popt.topt.expanded));
236236
fprintf(fout, " \\z list table access permissions\n");
237237
fprintf(fout, " \\! [cmd] shell escape or command\n");

0 commit comments

Comments
 (0)