the order of operator computation
the order of operator computation
От:
Jian He <hejian.mark@gmail.com>
Дата:
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 <tgl@sss.pgh.pa.us>
Дата:
Jian He 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