Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ1bp-0004e0-Rb for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2017 17:52:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dJ1bp-00007P-EL for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2017 17:52:37 +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 1dJ1aJ-0005u2-Rw for pgsql-hackers@postgresql.org; Thu, 08 Jun 2017 17:51:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJ1aH-0008SS-Fx for pgsql-hackers@postgresql.org; Thu, 08 Jun 2017 17:51:02 +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 v58HovFL004839; Thu, 8 Jun 2017 13:50:57 -0400 From: Tom Lane To: "'Andres Freund'" cc: Regina Obe , "'Mark Dilger'" , "'PostgreSQL-development'" Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity In-reply-to: <20170608170722.hhfa4yuwl23bgfky@alap3.anarazel.de> References: <20170603031127.fqg7zjhfgbcbcank@alap3.anarazel.de> <4125B63A-886A-442D-9932-34F0D4F76D41@gmail.com> <20170604193521.ha6d5kpkdswmissm@alap3.anarazel.de> <63850C96-9570-4969-8074-7033DA4C334F@gmail.com> <20170604211942.aiavcbagsho5owcz@alap3.anarazel.de> <13450.1496861842@sss.pgh.pa.us> <000201d2dfd2$07fad150$17f073f0$@pcorp.us> <31985.1496887317@sss.pgh.pa.us> <000501d2e06f$faeca490$f0c5edb0$@pcorp.us> <20170608170722.hhfa4yuwl23bgfky@alap3.anarazel.de> Comments: In-reply-to "'Andres Freund'" message dated "Thu, 08 Jun 2017 10:07:22 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4837.1496944257.1@sss.pgh.pa.us> Date: Thu, 08 Jun 2017 13:50:57 -0400 Message-ID: <4838.1496944257@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 "'Andres Freund'" writes: > On 2017-06-08 11:57:49 -0400, Regina Obe wrote: >> My main concern in these cases is the short-circuiting not happening. > Note there's also no short-circuiting e.g. for aggregates inside case > either. Well, depends. If const-folding manages to get rid of the aggregate call altogether, it won't be computed. 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