Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire) - Mailing list pgsql-hackers

From D'Arcy" "J.M." Cain
Subject Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Date
Msg-id m10N2SI-0000cFC@druid.net
Whole thread Raw
In response to Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Thus spake Bruce Momjian
> > I looked at pg_operator and didn't see any flag to mark
> > an operator as 'associative'.   Perhaps if we added a flag
> > like this, the re-write system could be modified to handle
> > cases like this.
> 
> My guess is that we should auto-left-associate functions like || if no
> parens are present.  It would be a small change to the parser.

And wouldn't require a dump/reload.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Clark Evans
Date:
Subject: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Next
From: Clark Evans
Date:
Subject: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)