pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Simon Riggs <simon@2ndQuadrant.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Declarative partitioning
Date: Mon, 24 Aug 2015 08:53:01 -0400
Message-ID: <55DB13AD.1060808@dunslane.net> (raw)
In-Reply-To: <CANP8+jK4CFwPCjFRYNnOeGrga1pZF6Wd+HZ0oe7Zz58ZrTTWKQ@mail.gmail.com>
References: <55D3093C.5010800@lab.ntt.co.jp>
	<WM!d7710f5363855cdb19d569b89c9c5e583742def1a8442d29ccee7f2591bfe40e9b26d6d9500448c2078cac09dedcf224!@asav-3.01.com>
	<55D36BFA.7080004@agliodbs.com>
	<55D7EDBD.50008@BlueTreble.com>
	<WM!faa2e6c4bb3f2ba8c21c4f1939bf2b946b75d49ef6597e4fc6547279192031f7913ef67ad10d07122e1262a205744da4!@asav-3.01.com>
	<55DA5CF2.5080207@agliodbs.com>
	<CANP8+jK4CFwPCjFRYNnOeGrga1pZF6Wd+HZ0oe7Zz58ZrTTWKQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



On 08/24/2015 03:46 AM, Simon Riggs wrote:
>
>
> ALTER TABLE foo ADD PARTITION NEXT;
>
> when a sequence of partitions has been defined
>
>


Or perhaps

    ALTER TABLE foo ADD PARTITION NEXT nn;


So you can set up, say, a week's worth of daily partitions at once.

I could also imagine a variant that allows you to specify partitions up 
to the one including some value.

cheers

andrew


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

Message-ID: <55DB13AD.1060808@dunslane.net>
Permalink:  ../55DB13AD.1060808@dunslane.net/
Also on:    postgresql.org/message-id/55DB13AD.1060808@dunslane.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, simon@2ndQuadrant.com, josh@agliodbs.com, Jim.Nasby@bluetreble.com, Langote_Amit_f8@lab.ntt.co.jp
  Subject: Re: Declarative partitioning
  In-Reply-To: <55DB13AD.1060808@dunslane.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