pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Regina Obe <lr@pcorp.us>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: 'Mark Dilger' <hornschnorter@gmail.com>
Cc: 'Andres Freund' <andres@anarazel.de>
Cc: 'PostgreSQL-development' <pgsql-hackers@postgresql.org>
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> (raw )
In-Reply-To: <31985.1496887317@sss.pgh.pa.us >
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 >
<FB5BA655-95A0-4EC5-900D-2582D3E98A74@gmail.com >
<13450.1496861842@sss.pgh.pa.us >
<000201d2dfd2$07fad150$17f073f0$@pcorp.us >
<31985.1496887317@sss.pgh.pa.us >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
> 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
view thread (30+ messages) latest in thread
Message-ID: <000501d2e06f$faeca490$f0c5edb0$@pcorp.us>
Permalink: ../000501d2e06f$faeca490$f0c5edb0$@pcorp.us/
Also on: postgresql.org/message-id/000501d2e06f$faeca490$f0c5edb0$@pcorp.us
copy link · copy postgr.es
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: lr@pcorp.us, tgl@sss.pgh.pa.us, hornschnorter@gmail.com, andres@anarazel.de
Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity
In-Reply-To: <000501d2e06f$faeca490$f0c5edb0$@pcorp.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