From e6d9e2106f0dda459063126d07967df197b7b5fe Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 4 Dec 2011 11:43:38 -0500 Subject: 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. --- doc/src/sgml/ref/psql-ref.sgml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 01f57c4eeb9..f97929b1fc9 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -2241,6 +2241,24 @@ lo_import 152801 + + \setenv [ name [ value ] ] + + + + Sets the environment variable name to value, or if the + value is + not supplied, unsets the environment variable. Example: + +testdb=> \setenv PAGER less +testdb=> \setenv LESS -imx4F + + + + + \sf[+] function_description -- cgit v1.2.3