Re: Bad error message - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bad error message
Date
Msg-id 2047.1222834168@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bad error message  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Responses Re: Bad error message
List pgsql-hackers
"Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
> On Wed, Oct 1, 2008 at 3:07 AM, Decibel! <decibel@decibel.org> wrote:
>> ERROR:  aggregates not allowed in WHERE clause

> No, the real issue is that you are referencing the outer table's column's
> max() in the inner query (correlated sub-query).

Yeah.  It's not easy to see how the software could guess your real
intentions here.  We could maybe offer a vaguely-worded HINT but I'm
not able to think of wording that would be very helpful.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Common Table Expressions (WITH RECURSIVE) patch
Next
From: Paul Schlie
Date:
Subject: Re: Block-level CRC checks