From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b
Date: Thu, 14 Sep 2017 11:41:17 -0400
Message-ID: <20170914154117.GG4628@tamriel.snowman.net> (raw)
In-Reply-To: <CA+TgmoZRBTVm8cmz4n2nrG05ywRfR405kC=OUkYy9yDOUY5dNA@mail.gmail.com>
References: <CA+TgmoYKc8z25nqLc8G=VB8W-N7Z8kFKR+F5y6y8J0LF+AWEDg@mail.gmail.com>
<20170912135831.jbknbivoosanexnx@alvherre.pgsql>
<CA+Tgmoa99e=bRDD8LbqCLKbE8AaVFica8URBAvYGRuXX4GyDvA@mail.gmail.com>
<25407.1505230679@sss.pgh.pa.us>
<CAEZATCX4rjpTwPJM7WmDR9ULaounNuN_bpw3A_VOhYUuMqTkTg@mail.gmail.com>
<CA+TgmoYUSpHi3jRQxvdDK3kgNbZT44GHA2MEVB9ez=3p9aNHUQ@mail.gmail.com>
<CAEZATCVbRDFHi_gA58698TEG_jK5G463wKsGr=yEpj4XWztFXQ@mail.gmail.com>
<CA+Tgmoa2oND8YW=UsbXvE=g5Wq2RFhQN2eRn-jCuo0U5tLeebw@mail.gmail.com>
<20170914024954.GA101802@rfd.leadboat.com>
<CA+TgmoZRBTVm8cmz4n2nrG05ywRfR405kC=OUkYy9yDOUY5dNA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert, all,
* Robert Haas (robertmhaas@gmail.com) wrote:
> On Wed, Sep 13, 2017 at 10:49 PM, Noah Misch <noah@leadboat.com> wrote:
> >> > Both Oracle and MySQL allow finite values after MAXVALUE (usually
> >> > listed as "0" in code examples, e.g. see [1]). Oracle explicitly
> >> > documents the fact that values after MAXVALUE are irrelevant in [1].
> >> > I'm not sure if MySQL explicitly documents that, but it does behave
> >> > the same.
> >> >
> >> > Also, both Oracle and MySQL store what the user entered (they do not
> >> > canonicalise), as can be seen by looking at ALL_TAB_PARTITIONS in
> >> > Oracle, or "show create table" in MySQL.
> >>
> >> OK, thanks. I still don't really like allowing this, but I can see
> >> that compatibility with other systems has some value here, and if
> >> nobody else is rejecting these cases, maybe we shouldn't either. So
> >> I'll hold my nose and change my vote to canonicalizing rather than
> >> rejecting outright.
> >
> > I vote for rejecting it. DDL compatibility is less valuable than other
> > compatibility. The hypothetical affected application can change its DDL to
> > placate PostgreSQL and use that modified DDL for all other databases, too.
>
> OK. Any other votes?
I think I side with Noah on this one. I agree that DDL compatibility is
less valuable than other compatibility. I had also been thinking that
perhaps it would be good to still be compatible for the sake of DBAs not
being confused if they got an error, but this seems straight-forward
enough that it wouldn't take much for a DBA who is building such
partitions to understand their mistake and to fix it.
I haven't been as close to this as others, so perhaps my vote is only
0.5 on this specific case, but that's my feeling on it.
Also, I don't think we should be adding compatibility for the sake of
compatibility alone. If there's more than one way to do something and
they're all correct and reasonable, then I could see us choosing the
route that matches what others in the industry do, but I don't see
simply ignoring user input in this specific case as really correct and
therefore it's better to reject it.
Basically, for my 2c, the reason Oracle does this is something more of a
historical artifact than because it was deemed sensible, and everyone
else just followed suit, but I don't believe we need to or should.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: sfrost@snowman.net, robertmhaas@gmail.com, noah@leadboat.com, dean.a.rasheed@gmail.com, tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b
In-Reply-To: <20170914154117.GG4628@tamriel.snowman.net>
References: <CA+TgmoYKc8z25nqLc8G=VB8W-N7Z8kFKR+F5y6y8J0LF+AWEDg@mail.gmail.com> <20170912135831.jbknbivoosanexnx@alvherre.pgsql> <CA+Tgmoa99e=bRDD8LbqCLKbE8AaVFica8URBAvYGRuXX4GyDvA@mail.gmail.com> <25407.1505230679@sss.pgh.pa.us> <CAEZATCX4rjpTwPJM7WmDR9ULaounNuN_bpw3A_VOhYUuMqTkTg@mail.gmail.com> <CA+TgmoYUSpHi3jRQxvdDK3kgNbZT44GHA2MEVB9ez=3p9aNHUQ@mail.gmail.com> <CAEZATCVbRDFHi_gA58698TEG_jK5G463wKsGr=yEpj4XWztFXQ@mail.gmail.com> <CA+Tgmoa2oND8YW=UsbXvE=g5Wq2RFhQN2eRn-jCuo0U5tLeebw@mail.gmail.com> <20170914024954.GA101802@rfd.leadboat.com> <CA+TgmoZRBTVm8cmz4n2nrG05ywRfR405kC=OUkYy9yDOUY5dNA@mail.gmail.com> <20170914154117.GG4628@tamriel.snowman.net>
* 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