Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIzqD-0007Gh-B0 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2017 15:59:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dIzqC-0003UE-6b for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jun 2017 15:59:20 +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 1dIzof-0000o0-M9 for pgsql-hackers@postgresql.org; Thu, 08 Jun 2017 15:57:45 +0000 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dIzod-0006DO-5j for pgsql-hackers@postgresql.org; Thu, 08 Jun 2017 15:57:44 +0000 Received: by mail-qt0-x235.google.com with SMTP id c10so46610408qtd.1 for ; Thu, 08 Jun 2017 08:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pcorp-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=0cWbB1L2OYp3fyAtVmNlT7sF4HSyTFImu0e5v5v8ijw=; b=zVrQzqLF8pG//zml0J1qEb7lAAFcnuEIUc+DiqOaEjuQ3I000CVW92YhwdHAIzbzRj 03bnzTJgKI+rkaZsU3QNSL7WgFInwYrzE1YmlMBY9/fYi07cKl9fmrE+LYKU0c3sFQ0q bVAF1TYCelUACgAsUm9QX6s9DkWTu0q+YiAgOvS2eVSzbFSibAwz6sNLwwuCukFz6dIT WmEy9tYTLQR4TbSOtSWHiV6vRTgIrKWMdHg/21ll121vm1tUaeqZrillWfz7o5mvawhi x8VF1+xLOJwd9HwIR2lLFDZFJ7LzCAS1HGbLyk5o4Qf5EXOWK+ui9QQ/Yb1N++8yn6/d piDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=0cWbB1L2OYp3fyAtVmNlT7sF4HSyTFImu0e5v5v8ijw=; b=EF8QAsI6P/FuhWOMkL0nl6EXvSlbQQ7pj7yXdbVPxA1QgBExGlO5BR8SE7amJrFL8Q wgMbNzx9XwFZt/EYlPHNeNIili2nrd82fITLPHR0v+Ku/BMnnkDwbzXbjMGwPoX3pNg5 JJwKyAtailK6G80ko5t97Vps7GHUrfqJ4wSGlISMaAoKc4E2XVRG9sVvJ7EhQMPzKK97 BQZPViQtE3YMiBm4boeWqCo0lgkh1zReTrJBJSFA9E9x8kWCD1MYwM1RmPldHCuwgn9z 9iNPzpxdb5ndQi5q9tP/gjpTe0yEz870NY2RcvxsFLxW0xsuvfEcnXyfifJV8b26uNRc ubdA== X-Gm-Message-State: AODbwcDqtVe38Z/irUtYzjXj9a4P8nyxdejNjUG9ZOe/0/UAZcL9BgQB HB+/V/JEvcJnPHBRFWI= X-Received: by 10.55.209.137 with SMTP id o9mr42175086qkl.61.1496937462251; Thu, 08 Jun 2017 08:57:42 -0700 (PDT) Received: from R (50-78-240-110-static.hfc.comcastbusiness.net. [50.78.240.110]) by smtp.gmail.com with ESMTPSA id m3sm3264400qkd.58.2017.06.08.08.57.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 08:57:41 -0700 (PDT) From: "Regina Obe" To: "'Tom Lane'" Cc: "'Mark Dilger'" , "'Andres Freund'" , "'PostgreSQL-development'" References: <000001d2d5de$d8d66170$8a832450$@pcorp.us> <29994.1495809534@sss.pgh.pa.us> <000c01d2d654$518f2be0$f4ad83a0$@pcorp.us> <21809.1495994606@sss.pgh.pa.us> <20170603024503.yv6gxvkyx6mtc63m@alap3.anarazel.de> <7181.1496458380@sss.pgh.pa.us> <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> In-Reply-To: <31985.1496887317@sss.pgh.pa.us> Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity Date: Thu, 8 Jun 2017 11:57:49 -0400 Message-ID: <000501d2e06f$faeca490$f0c5edb0$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQGSyGid0WOb7K33IPoK2k+QsEQaEAKr4LhqAj7/u9sCYz3ehQI8CMhgAnAUar8CAekolwFXzi3+Apc1MG8B7cswggJEIFHfAhiT9OsBmaJDnwHSXWCUAl7ZcjOhq0jScA== Content-Language: en-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 > But this line of thinking does strengthen my feeling that throwing an error is the right thing to do for the moment. If we allow v10 to accept such cases but do something different from what we used to, that > will greatly complicate any future attempt to try to restore the old behavior. > regards, tom lane Agreed. The other side benefit of throwing an error instead of just doing something different is you'll find out how rampant the old behavior is :). People are more likely to know to complain when their apps break than they are if it just silently starts doing something different. My main concern in these cases is the short-circuiting not happening. Because in these cases, the code goes into areas that it shouldn't which is likely to mess up some logic in hard to troubleshoot ways. I think erroring out is the best compromise. Thanks, Regina -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers