Re: Desirability of client-side expressions in psql? - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Desirability of client-side expressions in psql?
Date
Msg-id alpine.DEB.2.21.1807102326450.29162@lancre
Whole thread Raw
In response to Re: Desirability of client-side expressions in psql?  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: Desirability of client-side expressions in psql?
List pgsql-hackers
Hello Corey,

>>    psql> \if :i >= 5
>>
> I think we're ok with that so long as none of the operators or values has a
> \ in it.
> What barriers do you see to re-using the pgbench grammar?

The pgbench expression grammar mimics SQL expression grammar,
on integers, floats, booleans & NULL.

I'm unsure about some special cases in psql (`shell command`,
'text' "identifier"). They can be forbidden on a new commande (\let),
but what happens on "\if ..." which I am afraid allows them is unclear.

-- 
Fabien.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimze usage of immutable functions as relation
Next
From: Tom Lane
Date:
Subject: CVE-2017-7484-induced bugs, or, btree cmp functions are not leakproof?