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

From: Clark Evans <clark(dot)evans(at)manhattanproject(dot)com>
To: hackers(at)postgreSQL(dot)org
Subject: Associative Operators? (Was: Re: [NOVICE] Out of frying pan, into fire)
Date: 1999-03-16 21:29:55
Message-ID: 36EECD53.82134000@manhattanproject.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message secret 1999-03-16 22:20:49 Re: [HACKERS] Re: postmaster dies (was Re: Very disappointing performance)
Previous Message D'Arcy J.M. Cain 1999-03-16 20:54:39 Re: [HACKERS] "CANNOT EXTEND" -