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

Re: error-free disabling of individual child partition

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: error-free disabling of individual child partition
Date: 2006-05-30 22:38:08
Message-ID: 87hd37jfzj.fsf@stark.xeocode.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Tom Lane:

> ALTER TABLE childN DROP INHERITS old_parent;
> ALTER TABLE childN ADD INHERITS new_parent;

I think you would have to make INHERITS a reserved word to make that happen:

stark=> create table integer (i integer);
CREATE TABLE
stark=> alter table test add inherits integer;
ALTER TABLE

-- 
greg


Responses

pgsql-hackers by date

Next:From: uolDate: 2006-05-30 22:54:19
Subject: Re: PL/PGSQL: Dynamic Record Introspection
Previous:From: Tom LaneDate: 2006-05-30 22:20:33
Subject: Re: [PATCHES] Magic block for modules

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group