Re: error-free disabling of individual child partition - Mailing list pgsql-hackers

From Greg Stark
Subject Re: error-free disabling of individual child partition
Date
Msg-id 87hd37jfzj.fsf@stark.xeocode.com
Whole thread Raw
Responses Re: error-free disabling of individual child partition
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Magic block for modules
Next
From: "Jim C. Nasby"
Date:
Subject: Re: anoncvs still slow