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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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