Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d7705e

Browse files
committed
Include \password in the psql help.
While at it, change the order of the documented options to be alphabetically again.
1 parent 9469d08 commit 2d7705e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/psql/help.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.122 2008/01/20 21:13:55 tgl Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.123 2008/03/26 15:24:56 mha Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -177,14 +177,16 @@ slashUsage(unsigned short int pager)
177177
fprintf(output, _(" \\encoding [ENCODING]\n"
178178
" show or set client encoding\n"));
179179
fprintf(output, _(" \\h [NAME] help on syntax of SQL commands, * for all commands\n"));
180+
fprintf(output, _(" \\prompt [TEXT] NAME\n"
181+
" prompt user to set internal variable\n"));
182+
fprintf(output, _(" \\password [USERNAME]\n"
183+
" securely change the password for a user\n"));
180184
fprintf(output, _(" \\q quit psql\n"));
181185
fprintf(output, _(" \\set [NAME [VALUE]]\n"
182186
" set internal variable, or list all if no parameters\n"));
183187
fprintf(output, _(" \\timing toggle timing of commands (currently %s)\n"),
184188
ON(pset.timing));
185189
fprintf(output, _(" \\unset NAME unset (delete) internal variable\n"));
186-
fprintf(output, _(" \\prompt [TEXT] NAME\n"
187-
" prompt user to set internal variable\n"));
188190
fprintf(output, _(" \\! [COMMAND] execute command in shell or start interactive shell\n"));
189191
fprintf(output, "\n");
190192

0 commit comments

Comments
 (0)