Re: Issues in partitioning - constraint dependency - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Issues in partitioning - constraint dependency
Date
Msg-id 1257839424.31339.2.camel@fsopti579.F-Secure.com
Whole thread Raw
In response to Issues in partitioning - constraint dependency  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
On tis, 2009-11-10 at 16:22 +0900, Itagaki Takahiro wrote:
> I'm working on partitioning syntax, amd encountered a dependency issue.
> When we define partition, also create an implicit CHECK constraint.
> The constraint should be kept until the pg_inherits entry is removed.
> But we cannot have a dependency from the constraint to the inheritance.

I'd say, don't worry about it for now.  Eventually, we will probably
want to replace the partitioning by CHECK constraint by some other
mechanism (like operator classes or something), at which point we will
want to come up with a more robust catalog representation.  The mandate
at the moment, I suppose, is just to hide the existing functionality
behind a special purpose syntax to make the future internal changes
easier.




pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Issues in partitioning - constraint dependency
Next
From: Jan Otto
Date:
Subject: Re: drop tablespace error: invalid argument