Re: inheritance question

From: Tsirkin Evgeny <tsurkin(at)mail(dot)jct(dot)ac(dot)il>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: inheritance question
Date: 2004-07-19 15:01:14
Message-ID: Pine.LNX.4.58.0407191800120.29297@p-roman.jct.ac.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

But this way i will touch both the schema AND data
And what i want is to change the schema ONLY.
Thanks

On Sun, 18 Jul 2004, Stephan Szabo wrote:

> 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 *)
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
-------------------------------------------
Evgeny.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2004-07-19 16:16:42 Re: inheritance question
Previous Message Xavier Poinsard 2004-07-19 12:46:18 Re: [ADMIN] Migrate postgres databases from SQL_ASCII to UNICODE