Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsKFg-0000gg-Pw for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 02:51:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsKFg-000271-7k for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 02:51:40 +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 1dsKE6-0007lJ-Q6 for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 02:50:03 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dsKE3-0002qa-EK for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 02:50:00 +0000 Received: by mail-pf0-x231.google.com with SMTP id e199so3082020pfh.3 for ; Wed, 13 Sep 2017 19:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2vox6cNkZQYzkFyAK25nYnBpGT3kY7MqczVR5ZbKUuc=; b=B1FSLM9HqnP5uBIC2DfvKc9X/OfDy+UOEsXoBZwqIh9UJu3HUlpnFJCop27hQR8lZ5 HzfyPGM4GYB4aOZuuoW3MKbGdAxY/Xx97HGSHohK/CAmckeL4wzDzBX6YllWuKC9AMcQ MhWwDqOpTbspLo0Fop6Rupy++jD55cxp7+1Dg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2vox6cNkZQYzkFyAK25nYnBpGT3kY7MqczVR5ZbKUuc=; b=Iee40AmNXo2C8MvcsMVygFaspNw8vD6TBSb8r6l3dST1BrM1YQvnhSdLDJktOsGSDp 1NvkeHPhqjgAQ0tDIXIO9/izB90GYJshuzlg01NM/2g7EsRmeEfH5t4MfjNg9iyiTiai dqdJ4YWgTNdjcUit6O6LTRsA81ZKX458+vL23vojWWRHUN/OG2Qf9hyqn+d3SHE/whQl lICbSRRnMaDk6r5aY7/m0LpNlAdrLAHJX3bgDfNk88niUo/A57Zo1NlfxRMY5CluTDQA uIZlmRUy5HYlWhDtfbWeFKLF7jo/CQTzY4hruqdvz2KZt+S+1lX/tmAXADeESR6dPxxG 4nWw== X-Gm-Message-State: AHPjjUgWoI8WFy2Tme7Vpg3G6ODGVFVs0HL3EWo8gIqeLqrvpFCq3APA AIeYfzn59jx6R3eX X-Google-Smtp-Source: ADKCNb54ILqYaE6vsNCmlk/BSgGZWo4COQuf6/2YqjWp1mfqxo8x64QrCTr8wRNIBE2jWGAzrUpG1w== X-Received: by 10.159.218.73 with SMTP id x9mr21904382plv.291.1505357397473; Wed, 13 Sep 2017 19:49:57 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id l74sm29225584pfi.9.2017.09.13.19.49.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 19:49:56 -0700 (PDT) Date: Wed, 13 Sep 2017 19:49:54 -0700 From: Noah Misch To: Robert Haas Cc: Dean Rasheed , Tom Lane , Alvaro Herrera , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b Message-ID: <20170914024954.GA101802@rfd.leadboat.com> References: <20170912135831.jbknbivoosanexnx@alvherre.pgsql> <25407.1505230679@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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 On Wed, Sep 13, 2017 at 12:06:40PM -0400, Robert Haas wrote: > On Wed, Sep 13, 2017 at 10:54 AM, Dean Rasheed 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