Add a \setenv command to psql.

Andrew Dunstan <andrew@dunslane.net>

Commit: e6d9e2106f0dda459063126d07967df197b7b5fe
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2011-12-04T16:43:38Z
Releases: 9.2.0
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.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +18 −0
src/bin/psql/command.c modified +45 −0
src/bin/psql/help.c modified +2 −1