Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwAVR-0000gZ-A2 for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Dec 2014 14:02:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwAVQ-0003UV-Mx for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Dec 2014 14:02:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwAVP-0003TR-AA for pgsql-hackers@postgresql.org; Wed, 03 Dec 2014 14:02:11 +0000 Received: from proofpoint1.mail.rice.edu ([128.42.201.100] helo=pp1.rice.edu) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XwAVL-00082r-PW for pgsql-hackers@postgresql.org; Wed, 03 Dec 2014 14:02:09 +0000 Received: from pps.filterd (pp1.rice.edu [127.0.0.1]) by pp1.rice.edu (8.14.5/8.14.5) with SMTP id sB3DvEAo014631; Wed, 3 Dec 2014 08:01:39 -0600 Received: from mh11.mail.rice.edu (mh11.mail.rice.edu [128.42.199.30]) by pp1.rice.edu with ESMTP id 1qxfwdjf0p-1; Wed, 03 Dec 2014 08:01:38 -0600 X-Virus-Scanned: by amavis-2.7.0 at mh11.mail.rice.edu, auth channel X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh11.mail.rice.edu (Postfix) with ESMTP id 921D34C0A85; Wed, 3 Dec 2014 08:01:38 -0600 (CST) Received: by aart.rice.edu (Postfix, from userid 18612) id 7FD601006E4; Wed, 3 Dec 2014 08:01:38 -0600 (CST) Date: Wed, 3 Dec 2014 08:01:38 -0600 From: "ktm@rice.edu" To: Alvaro Herrera Cc: Amit Langote , "'Robert Haas'" , "'Andres Freund'" , "'Bruce Momjian'" , "'Pg Hackers'" Subject: Re: On partitioning Message-ID: <20141203140138.GG10679@aart.rice.edu> References: <053501cffa30$ecdf8700$c69e9500$@lab.ntt.co.jp> <066501cffd52$3d919390$b8b4bab0$@lab.ntt.co.jp> <032601d00471$ea6f4280$bf4dc780$@lab.ntt.co.jp> <04da01d00917$2dde1010$899a3030$@lab.ntt.co.jp> <015b01d00eab$56d37700$047a6500$@lab.ntt.co.jp> <20141203130026.GW1737@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141203130026.GW1737@alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1412030132 X-Pg-Spam-Score: -4.2 (----) 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, Dec 03, 2014 at 10:00:26AM -0300, Alvaro Herrera wrote: > Amit Langote wrote: > > > From: Robert Haas [mailto:robertmhaas@gmail.com] > > > > What is an overflow partition and why do we want that? > > > > That would be a default partition. That is, where the tuples that > > don't belong elsewhere (other defined partitions) go. VALUES clause of > > the definition for such a partition would look like: > > > > (a range partition) ... VALUES LESS THAN MAXVALUE > > (a list partition) ... VALUES DEFAULT > > > > There has been discussion about whether there shouldn't be such a > > place for tuples to go. That is, it should generate an error if a > > tuple can't go anywhere (or support auto-creating a new one like in > > interval partitioning?) > > In my design I initially had overflow partitions too, because I > inherited the idea from Itagaki Takahiro's patch. Eventually I realized > that it's a useless concept, because you can always have leftmost and > rightmost partitions, which are just regular partitions (except they > don't have a "low key", resp. "high key"). If you don't define > unbounded partitions at either side, it's fine, you just raise an error > whenever the user tries to insert a value for which there is no > partition. > Hi, Maybe I am not clear on the concept of an overflow partition, but I thought that it functioned to catch any record that did not fit the partitioning scheme. You end of range with out a "low key" or "high key" would only catch problems in those areas. If you partitioned on work days of the week, you should not have anything on Saturday/Sunday. How would that work? You would want to catch anything that was not a weekday in the overflow. Regards, Ken -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers