Re: ERROR: "failed to locate grouping columns"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dickson S(dot) Guedes" <listas(at)guedesoft(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ERROR: "failed to locate grouping columns"
Date: 2009-03-08 00:38:13
Message-ID: 20355.1236472693@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dickson S. Guedes" <listas(at)guedesoft(dot)net> writes:
> And bellow is the select that returns: "ERROR: failed to locate grouping columns"
> when no rows is returned by the View above, but it runs well when one or more
> rows is returned by same view.

I really have a hard time believing that whether you get that error is
contingent on whether the view returns some rows or not. That's a
planner message and couldn't possibly have to do with what happens
at runtime.

Would you put together a complete example, instead of leaving us to
guess what's underlying the view? And what PG version is this?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dickson S. Guedes 2009-03-08 01:04:41 Re: ERROR: "failed to locate grouping columns"
Previous Message Dickson S. Guedes 2009-03-07 23:54:49 ERROR: "failed to locate grouping columns"