Re: factorial function/phase out postfix operators?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: factorial function/phase out postfix operators?
Дата
Msg-id 7534.1590006555@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: factorial function/phase out postfix operators?  (Mark Dilger <mark.dilger@enterprisedb.com>)
Список pgsql-hackers
Mark Dilger <mark.dilger@enterprisedb.com> writes:
> ... But if we made a clean distinction between the characters that are allowed in postfix operators vs. those allowed
forinfix operators, then we'd get to have postfix operators without the ambiguity, right? 

I continue to see little point in half-baked compatibility measures
like that.  You'd be much more likely to break working setups (that
might not even involve any postfix operators) than to accomplish
anything useful.  In particular, if Joe DBA out there has a postfix
operator, and it's not named according to whatever rule you chose,
then you haven't done anything to fix his compatibility problem.

> When thinking about postfix operators, the subscript and superscript character ranges come to my mind, such as
>     SELECT Σ₂(x² + y³ + z⁴);

We already have a convention about non-ASCII characters, and it is that
they are identifier characters not operator characters.  Changing that
would break yet a different set of applications.  (That is to say,
the above SELECT already has a well-defined lexical interpretation.)

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: factorial function/phase out postfix operators?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Operator class parameters and sgml docs