Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5vxZ-0005AP-JX for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:08:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5vxZ-0000UW-65 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:08:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5vxW-0000S0-8r for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:08:22 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1b5vxN-0003Ux-F7 for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:08:21 +0000 Received: from elite ([109.44.0.169]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MPKo0-1bALo50rPk-004Org; Thu, 26 May 2016 16:08:05 +0200 From: Andreas Seltenreich To: Peter Geoghegan Cc: Andres Freund , Pg Hackers , Tom Lane Subject: Re: ORDER/GROUP BY expression not found in targetlist In-Reply-To: (Peter Geoghegan's message of "Wed, 25 May 2016 19:57:11 -0700") References: <20160526021235.w4nq7k3gnheg7vit@alap3.anarazel.de> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.5 (gnu/linux) X-Now-Playing: Drifter =?utf-8?Q?=E2=99=AA?= Reroute to Remain =?utf-8?Q?=E2=99=AA?= In Flames Date: Thu, 26 May 2016 16:07:59 +0200 Message-ID: <87a8jcoqtc.fsf@elite.ansel.ydns.eu> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Yubdywauy8RlSIii69/OOHUJxDK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-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Geoghegan writes: > On Wed, May 25, 2016 at 7:12 PM, Andres Freund wrote: >> >> =# CREATE TABLE twocol(col01 int, col02 int); >> =# SELECT DISTINCT col01, col02, col01 FROM twocol ; >> ERROR: XX000: ORDER/GROUP BY expression not found in targetlist >> LOCATION: get_sortgroupref_tle, tlist.c:341 >> >> which appears to be a 9.6 regression, presumable fallout from the path >> restructuring. > > It's surprising that SQL Smith didn't catch something with such simple > steps to reproduce. I removed distinct relatively early because it causes a large part of queries to fail due to it not finding an equality operator it likes. It seems to be more picky about the equality operator than, say, joins. I'm sure it has a good reason to do so? regression=> select distinct f1 from path_tbl; ERROR: could not identify an equality operator for type path LINE 1: select distinct f1 from path_tbl; regression=> \do = -[ RECORD 38 ]-+---------------------------- Schema | pg_catalog Name | = Left arg type | path Right arg type | path Result type | boolean Description | equal -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers