Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: error-free disabling of individual child partition


  • From: Hannu Krosing <hannu(at)skype(dot)net>
  • To: Simon Riggs <simon(at)2ndquadrant(dot)com>
  • Cc: Zeugswetter Andreas DCP SD <ZeugswetterA(at)spardat(dot)at>, Andrew Dunstan <andrew(at)dunslane(dot)net>, April Lorenzen <outboundindex(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: error-free disabling of individual child partition
  • Date: Tue, 23 May 2006 14:30:55 +0300
  • Message-id: <1148383855(dot)3798(dot)3(dot)camel(at)localhost(dot)localdomain>

Ühel kenal päeval, T, 2006-05-23 kell 10:51, kirjutas Simon Riggs:
> On Tue, 2006-05-23 at 09:49 +0200, Zeugswetter Andreas DCP SD wrote:
> > > > table of another table. I propose a TODO item to allow this:
> > > >
> > > > 	ALTER TABLE childN INHERITS ( parent1, ... );
> > 
> > > > We don't need a disinherit do we?
> > 
> > I propose: ALTER TABLE childN INHERITS ();
> > Thus I also think, that the list should be complete, and is not an
> > addition 
> > to existing inheritance.
> 
> Sounds good; an absolute rather than a relative approach. Avoids new
> keywords.

And also allows you move a partition from live to archive table in one
command. Brilliant :)

> Implementation is simpler too:
> - check that we have all required merged attributes (if any)
> - remove any inheritance that isn't on the list
> 
> If the table is already INHERITS (x) and we specify INHERITS (x) then
> its a no-op that returns success.
>  
> > > O, yes, I think we do. I can imagine that the ability to swap a table 
> > 
> > Agreed. Simon, were you testing how many ppl read to the end :-)
> 
> Just seeing who cared. DROP TABLE removes inheritance too, in a Keyser
> Soze manner.

Just fyi - I care too .

-- 
----------------
Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me:  callto:hkrosing
Get Skype for free:  http://www.skype.com






Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group