pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Josh Berkus <josh@agliodbs.com>
To: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Declarative partitioning
Date: Sun, 23 Aug 2015 16:53:22 -0700
Message-ID: <55DA5CF2.5080207@agliodbs.com> (raw )
In-Reply-To: <WM!faa2e6c4bb3f2ba8c21c4f1939bf2b946b75d49ef6597e4fc6547279192031f7913ef67ad10d07122e1262a205744da4!@asav-3.01.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 >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 08/21/2015 08:34 PM, Jim Nasby wrote:
> On 8/18/15 12:31 PM, Josh Berkus wrote:
>> Also this would be useful for range
>> partitions:
>>
>> CREATE PARTITION ON parent_table USING ( start_value );
>>
>> ... where start_value is the start range of the new partition. Again,
>> easier for users to get correct.
>
> Instead of that, I think it would be more foolproof to do
>
> CREATE PARTITION ON parent_table FOR ( value1, ... );
>
> instead of trusting the user to get the exact start value correct.
>
> Though... I guess there could be value in allowing an exact start value
> but throwing an error if it doesn't sit exactly on a boundary. Might
> make it less likely to accidentally create the wrong partition.
Well, I'm figuring that most people would use "CREATE NEXT PARTITION"
instead.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
--
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: <55DA5CF2.5080207@agliodbs.com>
Permalink: ../55DA5CF2.5080207@agliodbs.com/
Also on: postgresql.org/message-id/55DA5CF2.5080207@agliodbs.com
copy link · copy postgr.es
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: josh@agliodbs.com, Jim.Nasby@BlueTreble.com, Langote_Amit_f8@lab.ntt.co.jp
Subject: Re: Declarative partitioning
In-Reply-To: <55DA5CF2.5080207@agliodbs.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