Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5w2B-0005sO-3H for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:13:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5w2A-0002Fl-GX for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:13:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5w29-0002Er-3j for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:13:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5w24-0001PQ-Ig for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:13:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4QECtCb026823; Thu, 26 May 2016 10:12:55 -0400 From: Tom Lane To: Andreas Seltenreich cc: Peter Geoghegan , Andres Freund , Pg Hackers Subject: Re: ORDER/GROUP BY expression not found in targetlist In-reply-to: <87a8jcoqtc.fsf@elite.ansel.ydns.eu> References: <20160526021235.w4nq7k3gnheg7vit@alap3.anarazel.de> <87a8jcoqtc.fsf@elite.ansel.ydns.eu> Comments: In-reply-to Andreas Seltenreich message dated "Thu, 26 May 2016 16:07:59 +0200" Date: Thu, 26 May 2016 10:12:55 -0400 Message-ID: <26822.1464271975@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andreas Seltenreich writes: > Peter Geoghegan writes: >> 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? It's looking for an operator that is known to be semantically equality, by virtue of being the equality member of a btree or hash opclass. Type path has no such opclass unfortunately. But when you write "a = b" that just looks for an operator named "=". regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers