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

From Daniel Verite
Subject Re: Variable substitution in psql backtick expansion
Date
Msg-id 0c41e787-067f-4413-82ef-445772539d96@manitou-mail.org
Whole thread Raw
In response to Re: Variable substitution in psql backtick expansion  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: Variable substitution in psql backtick expansion  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
    Fabien COELHO wrote:

> 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 expression was false
>   \endif

Yes, the question was whether we leave it as that for v10,
or if it's worth a last-minute improvement for usability,
assuming it's doable, similarly to what $subject does to backtick
expansion for external evaluation.


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite



pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: FDW and parallel execution
Next
From: Fabien COELHO
Date:
Subject: Re: Variable substitution in psql backtick expansion