Обсуждение: the order of operator computation

Поиск
Список
Период
Сортировка

the order of operator computation

От
Jian He
Дата:

In other language:
(+) 1 1  

will return 2.

In postgresql seems like the order is fixed. 
LEFTARG Operator RIGHTARG

Is there some way to achieve:
 Operator LEFTARG RIGHTARG 


Re: the order of operator computation

От
Tom Lane
Дата:
Jian He <hejian.mark@gmail.com> writes:
> Is there some way to achieve:
>  *Operator LEFTARG RIGHTARG *

Maybe with some hack-and-slash in gram.y, but it's not something
we'd be interested in supporting.  What will you do to disambiguate
prefix/infix (1 vs 2 arg) operators?

            regards, tom lane