Re: [HACKERS] open 6.4 items

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [HACKERS] open 6.4 items
Дата
Msg-id 35F80729.48E37A17@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] open 6.4 items  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] open 6.4 items  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
> allow multiple generic operators in expressions without the use of
>   parentheses

I could just let this one go until it dies a quiet death, but...

To parse "multiple generic operators", per the example

  select oid @ oid @ oid from table;

one would have to change the associativity of many operators from
non-associative (the correct assumption) to left- or right associative
(the wrong thing to do). If we are going to allow operator extensibility
we cannot make assumptions about the precedence order of operators, and
should require parentheses to break the ambiguity.

Unless someone has a good proposal on how to change the standard rules
of arithmetic, or on how to change the parser to allow
operator-dependent precedence in an extensible way, then we shouldn't
bother tracking this as a problem statement imho.

                   - Tom

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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] more on int8
Следующее
От: Vadim Mikheev
Дата:
Сообщение: Re: [HACKERS] open 6.4 items