Re: Auto creation of Partitions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: NikhilS <nikkhils(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Auto creation of Partitions
Date: 2007-03-06 18:44:25
Message-ID: 7004.1173206665@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> But when I say
> CREATE TABLE ( a int PRIMARY KEY, ... ) PARTITION blah ...
> then I expect that the primary key will be enforced across all
> partitions. We currently sidestep that issue by not offering seemingly
> transparent partitioning. But if you are planning to offer that, the
> unique index issue needs to be solved, and I see nothing in your plan
> about that.

Agreed, it needs to Just Work. I think it'd still be useful though
if we only support auto-partitioning on the primary key, and that
restriction avoids the indexing problem.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2007-03-06 18:44:31 Re: Auto creation of Partitions
Previous Message Josh Berkus 2007-03-06 18:43:45 Re: PostgreSQL - 'SKYLINE OF' clause added!

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2007-03-06 18:44:31 Re: Auto creation of Partitions
Previous Message Peter Eisentraut 2007-03-06 18:35:19 Re: Auto creation of Partitions