Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2Kc-0005yn-3Z for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2015 17:34:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YR2Kb-0007G3-Hg for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2015 17:34:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YR2KZ-0007Dm-NL for pgsql-hackers@postgresql.org; Thu, 26 Feb 2015 17:34:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YR2KW-0007R0-FU for pgsql-hackers@postgresql.org; Thu, 26 Feb 2015 17:34:34 +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 t1QHYO8b012607; Thu, 26 Feb 2015 12:34:24 -0500 From: Tom Lane To: Tomas Vondra cc: David Rowley , PostgreSQL-development Subject: Re: Performance improvement for joins where outer side is unique In-reply-to: <54EF4B80.7020902@2ndquadrant.com> References: <54EE659F.8050004@2ndquadrant.com> <54EF4B80.7020902@2ndquadrant.com> Comments: In-reply-to Tomas Vondra message dated "Thu, 26 Feb 2015 17:36:16 +0100" Date: Thu, 26 Feb 2015 12:34:24 -0500 Message-ID: <12606.1424972064@sss.pgh.pa.us> 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 Tomas Vondra writes: > FWIW this apparently happens because the code only expect that > EquivalenceMembers only contain Var, but in this particular case that's > not the case - it contains RelabelType (because oprcode is regproc, and > needs to be relabeled to oid). If it thinks an EquivalenceMember must be a Var, it's outright broken; I'm pretty sure any nonvolatile expression is possible. 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