agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedthe order of operator computation
2+ messages / 2 participants
[nested] [flat]
* the order of operator computation
@ 2022-03-25 04:46 Jian He <hejian.mark@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jian He @ 2022-03-25 04:46 UTC (permalink / raw)
To: pgsql-sql <pgsql-sql@lists.postgresql.org>
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 *
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: the order of operator computation
@ 2022-03-25 05:32 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jian He <hejian.mark@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2022-03-25 05:32 UTC (permalink / raw)
To: Jian He <hejian.mark@gmail.com>; +Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-03-25 05:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 04:46 the order of operator computation Jian He <hejian.mark@gmail.com>
2022-03-25 05:32 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox