aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-12-04 11:43:38 -0500
committerAndrew Dunstan <andrew@dunslane.net>2011-12-04 11:43:38 -0500
commite6d9e2106f0dda459063126d07967df197b7b5fe (patch)
tree999db9e6c8f70002d226ecab964b405f238250af /src/bin/psql/help.c
parenteb06416ba44ccbf3fe03a47739d9da4e4de42ced (diff)
downloadpostgresql-e6d9e2106f0dda459063126d07967df197b7b5fe.tar.gz
postgresql-e6d9e2106f0dda459063126d07967df197b7b5fe.zip
Add a \setenv command to psql.
This can be used to set (or unset) environment variables that will affect programs called by psql (such as the PAGER), probably most usefully in a .psqlrc file. Andrew Dunstan, reviewed by Josh Kupershmidt.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 4649e944755..13d8bf61d4f 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -158,7 +158,7 @@ slashUsage(unsigned short int pager)
{
FILE *output;
- output = PageOutput(93, pager);
+ output = PageOutput(94, pager);
/* if you add/remove a line here, change the row count above */
@@ -257,6 +257,7 @@ slashUsage(unsigned short int pager)
fprintf(output, _("Operating System\n"));
fprintf(output, _(" \\cd [DIR] change the current working directory\n"));
+ fprintf(output, _(" \\setenv NAME [VALUE] set or unset environment variable\n"));
fprintf(output, _(" \\timing [on|off] toggle timing of commands (currently %s)\n"),
ON(pset.timing));
fprintf(output, _(" \\! [COMMAND] execute command in shell or start interactive shell\n"));