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