Re: inheritance question - Mailing list pgsql-admin

From Stephan Szabo
Subject Re: inheritance question
Date
Msg-id 20040718215354.I71415@megazone.bigpanda.com
Whole thread Raw
In response to inheritance question  (evgeny tsurkin <tsurkin@idefix.jct.ac.il>)
Responses Re: inheritance question  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
List pgsql-admin
On Tue, 13 Jul 2004, evgeny tsurkin wrote:

> Hi All!
> That probably was already asked thousand times
> but i did not find an exact answer:
> I want to have two tables the second one will have
> all the columns from the first + some extra .The data
> should be complittly separate .I was trying to use
> inheritance and setted the  SQL_INHERITANCE = false
> to separate the data ,but when trying to add a column
> to the father i have got an error:
> ERROR:  Attribute must be added to child tables too
> what can i do ?

Either don't use SQL_INHERITANCE=false, or specify that you want
to act upon the entire tree using the older syntax which I think
would look like ALTER TABLE first* add column ...
(note the *)



pgsql-admin by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Help - Error in createdb
Next
From: Tsirkin Evgeny
Date:
Subject: Re: inheritance question