Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsWI9-0006VO-N0 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 15:43:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsWI9-0007mc-9Z for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 15:43:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsWGc-00054y-63 for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 15:41:26 +0000 Received: from static-96-255-250-162.washdc.fios.verizon.net ([96.255.250.162] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsWGV-0002pW-0t for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 15:41:25 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6DC115F796; Thu, 14 Sep 2017 11:41:17 -0400 (EDT) Date: Thu, 14 Sep 2017 11:41:17 -0400 From: Stephen Frost To: Robert Haas Cc: Noah Misch , Dean Rasheed , Tom Lane , Alvaro Herrera , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b Message-ID: <20170914154117.GG4628@tamriel.snowman.net> References: <20170912135831.jbknbivoosanexnx@alvherre.pgsql> <25407.1505230679@sss.pgh.pa.us> <20170914024954.GA101802@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MYGvN5Q5bcWHX63W" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 --MYGvN5Q5bcWHX63W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Robert, all, * Robert Haas (robertmhaas@gmail.com) wrote: > On Wed, Sep 13, 2017 at 10:49 PM, Noah Misch 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 DD= L to > > placate PostgreSQL and use that modified DDL for all other databases, t= oo. >=20 > 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 --MYGvN5Q5bcWHX63W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZuqMdAAoJEO1sijiDR2RVzy8P/AvxBNPSWgA8NYDqZs4QMW1e j0uepoA+0/jfwVsvKN+Agu7F6VxCz/mlWw+BJqIzdzGclxX7oRA9jOvh4G21fctC THJoNkc5OZxNZ7MgYMUX7hHM1E3pQHjV+mS3IHkDfc5Z7/AZdl3MLWKrXjqEZ+PT 4PRdfjEQH4igy3HzdrHl9a8UiiWz9G3NIRj6sNtkEcMyS0MNhmaXGkVu1jF+zx3C VrM6h4WVpOJv+F7SJu1JerAc8gdXvPu/OxUc5IonVl5OXbN3+ibo9qd9EFF0QRiE Fe8itD4KjC37ZjdJ6fcGo+lZsyCLlN5yNjWdOBAvpZWYbmW5rHHZhADA8i6qJbcO zrK3BOdZWqQPsg8pWpC+dVbRLjHwmZLofuUP5A3H1XMBFcnKmdhPa7kOWsCNUZav oSJ9uqFJ3pPPpRNogO1L2x+GoXicvjy/4WSn+TzKI9ozQdP1C8zoPylLMuUVt6eE ZRX08h5zAHhZEzDDbNG91ryymzimTX0hW3Ve4D2J2OPaYaO0k7/Kdqxq6xndOjOt 3cwTXvrgIPxQxCCirBpCmyFapobgxEssayqEDJZNt3NxwG5SvvN5TAbxvZ004PSq I3auBkBWdB7gmxSXgfDE5BXMUIZ2vMhrZGE9B32h0EMNUEbqbX1RgBJrE44XaOdp D8vPSY6yBaYZx/JC/hjF =+4Y6 -----END PGP SIGNATURE----- --MYGvN5Q5bcWHX63W--