Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Дата
Msg-id m10N2SI-0000cFC@druid.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Clark Evans
Дата:
Сообщение: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Следующее
От: Clark Evans
Дата:
Сообщение: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)