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

From Bruce Momjian
Subject Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Date
Msg-id 199905100051.UAA04402@candle.pha.pa.us
Whole thread Raw
In response to Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)  (Clark Evans <clark.evans@manhattanproject.com>)
List pgsql-hackers
This is fixed in 6.5 beta.


> Seth McQuale pointed out that the follwing does not work:
>   SELECT LASTNAME || ',' || FIRSTNAME [AS] NAME FROM FRIENDS;
> 
> The solution, was:
>   SELECT ( LASTNAME || ',' ) || FIRSTNAME AS NAME FROM FRIENDS;
> 
> 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.
> 
> Thoughts?
> 
> Clark Evans
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: your mail
Next
From: Ryan Bradetich
Date:
Subject: Re: [HACKERS] Sequences....