Provide a test for variable existence in psql

Andrew Dunstan <andrew@dunslane.net>

Commit: d57c7a7c506276597af619bdb8c62fa5b592745a
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2017-09-21T23:02:23Z
Releases: 11.0
Provide a test for variable existence in psql

"\if :{?variable_name}" will be translated to "\if TRUE" if the variable
exists and "\if FALSE" otherwise. Thus it will be possible to execute code
conditionally on the existence of the variable, regardless of its value.

Fabien Coelho, with some review by Robins Tharakan and some light text
editing by me.

Discussion: https://postgr.es/m/alpine.DEB.2.20.1708260835520.3627@lancre

Files

Documentation touched

Discussion