Re: Issues in partitioning - constraint dependency

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Issues in partitioning - constraint dependency
Date: 2009-11-10 07:50:24
Message-ID: 1257839424.31339.2.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Albe Laurenz 2009-11-10 08:44:30 Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Previous Message Itagaki Takahiro 2009-11-10 07:22:33 Issues in partitioning - constraint dependency