Re: how to make table inherits another ?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: elein <elein(at)varlena(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: how to make table inherits another ?
Date: 2005-02-16 21:21:36
Message-ID: Pine.GSO.4.62.0502170019440.8005@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 16 Feb 2005, elein wrote:

> You specify the inheritance on the creation of the child table.
> See CREATE TABLE

I know this. I need to create inheritance for already created tables.
There is no way to do this using alter table, so I tried to
define it by hand :)

>
> --elein
>
> On Wed, Feb 16, 2005 at 11:48:54PM +0300, Oleg Bartunov wrote:
>> Hi there,
>>
>> is't possible to make table to be inherited from another table in case
>> both tables already exist. I tried to insert record to pg_inherits,
>> but it doesn't helped.
>>
>> openfts=# select * from pg_inherits;
>> inhrelid | inhparent | inhseqno
>> ----------+-----------+----------
>> 2617283 | 2417279 | 1
>>
>> did I miss something ?
>>
>> Regards,
>> Oleg
>> _____________________________________________________________
>> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
>> Sternberg Astronomical Institute, Moscow University (Russia)
>> Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
>> phone: +007(095)939-16-83, +007(095)939-23-83
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 3: if posting/reading through Usenet, please send an appropriate
>> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>> message can get through to the mailing list cleanly
>>
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2005-02-16 21:22:20 Re: Strange RETURN NEXT behaviour in Postgres 8.0
Previous Message elein 2005-02-16 21:11:48 Re: how to make table inherits another ?