Re: Variable substitution in psql backtick expansion - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Variable substitution in psql backtick expansion
Date
Msg-id alpine.DEB.2.20.1704020841490.4632@lancre
Whole thread Raw
Responses Re: Variable substitution in psql backtick expansion  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Variable substitution in psql backtick expansion  ("Daniel Verite" <daniel@manitou-mail.org>)
List pgsql-hackers
Bonjour Daniel,

> I think that users would rather have the option to just put
> an SQL expression behind \if.

Note that this is already available indirectly, as show in the 
documentation.
  SELECT some-boolean-expression AS okay \gset  \if :okay    \echo boolean expression was true  \else    \echo boolean
expressionwas false  \endif
 

-- 
Fabien.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: New expression evaluator and indirect jumps
Next
From: Pavel Stehule
Date:
Subject: Re: Variable substitution in psql backtick expansion