pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Robert Haas <robertmhaas@gmail.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: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b
Date: Wed, 13 Sep 2017 19:49:54 -0700
Message-ID: <20170914024954.GA101802@rfd.leadboat.com> (raw)
In-Reply-To: <CA+Tgmoa2oND8YW=UsbXvE=g5Wq2RFhQN2eRn-jCuo0U5tLeebw@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Wed, Sep 13, 2017 at 12:06:40PM -0400, Robert Haas wrote:
> On Wed, Sep 13, 2017 at 10:54 AM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> > Oracle, MySQL and DB2 all use MINVALUE/MAXVALUE. Actually, Oracle and
> > MySQL only use MAXVALUE, not MINVALUE, because they don't allow gaps
> > between partitions and the first partition implicitly starts at
> > MINVALUE, so the bounds that we currently support are a strict
> > superset of those supported by Oracle and MySQL.
> >
> > 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.


-- 
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 (25+ messages)  latest in thread

Message-ID: <20170914024954.GA101802@rfd.leadboat.com>
Permalink:  ../20170914024954.GA101802@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20170914024954.GA101802@rfd.leadboat.com

 · 

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 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: noah@leadboat.com, robertmhaas@gmail.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: <20170914024954.GA101802@rfd.leadboat.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>

* 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