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.1806242155450.1087@lancre
Whole thread Raw
In response to Re: Desirability of client-side expressions in psql?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Desirability of client-side expressions in psql?
List pgsql-hackers
>> Note that this can already be done by relying on server-side expressions:
>>
>>  SELECT :SERVER_VERSION_NUM >= 110000 AS "version_11_plus" \gset
>>  \if :version_11_plus
>>    ...
>>  \endif
>>
>> Not very elegant, but functional. I'm not sure there is a compelling
>> reason to have this feature beyond elegance.
>
> not elegant, not readable, and not user friendly.

Sure, I can only agree.

> the possibility of simple expression evaluation is just practical.

Ok. Good.

I do not mind spending some time for elegance, but I mind spending time 
for nothing.

I hope some committers will also express their views about the feature.

-- 
Fabien.


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Next
From: Dmitry Dolgov
Date:
Subject: Re: effect of JIT tuple deform?