Re: [COMMITTERS] pgsql: Provide a test for variable existence in psql

2017-09-21 Thread Fabien COELHO
Provide a test for variable existence in psql Thanks for the editing & commit. Pavel's feedback helped to devise a nicer syntax, although it was not strictly speaking a review. -- Fabien. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your

[COMMITTERS] pgsql: Provide a test for variable existence in psql

2017-09-21 Thread Andrew Dunstan
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 revie