Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5wO2-0000Zq-Il for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:35:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5wO2-0002hN-5Z for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:35:46 +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 1b5wMg-00015P-Kt for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:34:22 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b5wMe-0004RQ-1S for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:34:21 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 3FE87145007B; Thu, 26 May 2016 16:34:17 +0200 (CEST) Received: from ex (ip-109-44-0-169.web.vodafone.de [109.44.0.169]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ase@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id BD185145007A; Thu, 26 May 2016 16:34:16 +0200 (CEST) From: Andreas Seltenreich To: Tom Lane Cc: Peter Geoghegan , Andres Freund , Pg Hackers Subject: Re: ORDER/GROUP BY expression not found in targetlist In-Reply-To: <26822.1464271975@sss.pgh.pa.us> (Tom Lane's message of "Thu, 26 May 2016 10:12:55 -0400") References: <20160526021235.w4nq7k3gnheg7vit@alap3.anarazel.de> <87a8jcoqtc.fsf@elite.ansel.ydns.eu> <26822.1464271975@sss.pgh.pa.us> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Message-ID: <87zircga6w.fsf@credativ.de> Date: Thu, 26 May 2016 16:34:15 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) 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 Tom Lane writes: > 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. As do lots of data types in the regression db while still having an operator providing semantic equivalence. I was hoping for someone to question that status quo. Naively I'd say an equivalence flag is missing in the catalog that is independent of opclasses. regards Andreas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers