Skip site navigation (1) Skip section navigation (2)

Re: BUG #2238: Query failed: ERROR

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "HOBY" <rabearison(at)yahoo(dot)fr>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2238: Query failed: ERROR
Date: 2006-02-05 00:45:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"HOBY" <rabearison(at)yahoo(dot)fr> writes:
> Warning: pg_query() []: Query failed: ERROR: Attribute
> unnamed_join.element must be GROUPed or used in an aggregate function . in
> fiche.php on line 154.

It's unlikely that we are going to be able to help when you didn't show
us the query or the table definitions.  However, some browsing in the
CVS logs shows this 7.3.3 bug fix:

2003-04-03 13:04  tgl

	* src/backend/parser/parse_agg.c (REL7_3_STABLE): Repair incorrect
	checking of grouped/ungrouped variables in the presence of unnamed
	joins; per pghackers discussion 31-Mar-03.

so my first advice is to update to something newer than 7.3.2 and see if
you still have a problem.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Martin PittDate: 2006-02-05 12:56:55
Subject: incorrect collation order in at least some non-C locales
Previous:From: Tom LaneDate: 2006-02-05 00:40:26
Subject: Re: BUG #2237: SELECT optimizer drops everything improperly

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group