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

Re: inheritance question

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: evgeny tsurkin <tsurkin(at)idefix(dot)jct(dot)ac(dot)il>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: inheritance question
Date: 2004-07-19 04:56:33
Message-ID: 20040718215354.I71415@megazone.bigpanda.com (view raw or flat)
Thread:
Lists: 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 *)



In response to

Responses

pgsql-admin by date

Next:From: Simon RiggsDate: 2004-07-19 06:39:03
Subject: Re: [HACKERS] Point in Time Recovery
Previous:From: Tom LaneDate: 2004-07-19 04:54:13
Subject: Re: [HACKERS] Point in Time Recovery

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