Re: Undefined psql variables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Undefined psql variables
Date
Msg-id 6247.1491163222@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] Undefined psql variables  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: Undefined psql variables
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> For checking variable definition, I would suggest to extend the variable 
> access syntax so that there is no exception to the one thing rule between 
> client side and server side evaluation:

>    \if :?variable

Don't like that one bit; you're going to run out of namespace there
in no time.  And you don't have a very good way to say "if not defined",
either.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Variable substitution in psql backtick expansion
Next
From: Tom Lane
Date:
Subject: Re: Suggested fix for \p and \r in psql