-v assignment --set assignment --variable assignment
Perform a variable assignment, like the
\set
internal command. You must separate name and value, if any, by an equal sign on the command line.
Sets the internal variable name to value or, if more than one value is given, to the concatenation of all of them. If no second argument is given, the variable is set with no value. To unset a variable, use the \ unset
command.
Valid variable names can contain characters, digits, and underscores. See the section Variables below for details. Variable names are case-sensitive.
Note: vsql treats several variables as special. They are documented in Variables.
To unset a variable, omit the equal sign. To set a variable without a value, use the equal sign but omit the value. These assignments are done during a very early stage of start-up, so variables reserved for internal purposes can get overwritten later.