pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 'Andres Freund' <andres@anarazel.de>
Cc: Regina Obe <lr@pcorp.us>
Cc: 'Mark Dilger' <hornschnorter@gmail.com>
Cc: 'PostgreSQL-development' <pgsql-hackers@postgresql.org>
Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity
Date: Thu, 08 Jun 2017 13:50:57 -0400
Message-ID: <4838.1496944257@sss.pgh.pa.us> (raw)
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>
	<FB5BA655-95A0-4EC5-900D-2582D3E98A74@gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

"'Andres Freund'" <andres@anarazel.de> 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



view thread (30+ messages)  latest in thread

Message-ID: <4838.1496944257@sss.pgh.pa.us>
Permalink:  ../4838.1496944257@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4838.1496944257@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, lr@pcorp.us, hornschnorter@gmail.com
  Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity
  In-Reply-To: <4838.1496944257@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox