Re: inheritance question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: inheritance question
Дата
Msg-id 20040719091441.F86768@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: inheritance question  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Список pgsql-admin
On Mon, 19 Jul 2004, Tsirkin Evgeny wrote:

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

The use the ALTER TABLE table* ADD COLUMN syntax to alter
the schema for table and its descendants.

In general, SQL_INHERITANCE=false is primarily there for
applications that were written for older versions of PostgreSQL.
You probably should be using queries that use the ONLY keyword
rather than relying on the guc variable.

> 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 *)

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tsirkin Evgeny
Дата:
Сообщение: Re: inheritance question
Следующее
От: Bill Chandler
Дата:
Сообщение: VACUUM ANALYZE and REINDEX