Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Szub9-0000AT-FM for pgsql-bugs@postgresql.org; Fri, 10 Aug 2012 19:10:15 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Szt5d-0006GA-2y for pgsql-bugs@postgresql.org; Fri, 10 Aug 2012 17:33:38 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Szt5P-0005M9-Vh for pgsql-bugs@postgresql.org; Fri, 10 Aug 2012 17:33:24 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Szt5P-0006o2-Bs for pgsql-bugs@postgresql.org; Fri, 10 Aug 2012 17:33:23 +0000 Date: Fri, 10 Aug 2012 17:33:23 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7486: Error Group by To: pgsql-bugs@postgresql.org From: andersonabreu@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201208/55 X-Sequence-Number: 33779 The following bug has been logged on the website: Bug reference: 7486 Logged by: Anderson Abreu Email address: andersonabreu@gmail.com PostgreSQL version: 8.4.12 Operating system: Linux Description: = Dear, I'm test the script, for example: select attA, attB from table1 group by attA. In postgre 8.4.X show error column attB must appear in the GROUP BY clause or be used in an aggregate function. But, in postgre 9.1.X the query running sucesfully. Why? Thank's