Re: Desirability of client-side expressions in psql?

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Desirability of client-side expressions in psql?
Date: 2018-06-24 19:59:52
Message-ID: alpine.DEB.2.21.1806242155450.1087@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Dolgov 2018-06-24 20:32:07 Re: effect of JIT tuple deform?
Previous Message Tomas Vondra 2018-06-24 19:45:19 Re: [HACKERS] PATCH: multivariate histograms and MCV lists