Skip to content

Commit 1c0e618

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 a07375e commit 1c0e618

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.122.2.1 2008/03/26 15:52:36 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)
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