Re: Table inheritance
От | Mladen Gogala |
---|---|
Тема | Re: Table inheritance |
Дата | |
Msg-id | 4BACCF9B.3010307@vmsinfo.com обсуждение исходный текст |
Ответ на | Table inheritance (Zdravko Balorda <zdravko.balorda@siix.com>) |
Список | pgsql-novice |
Inheritance is not the replacement for foreign keys. Inheritance mechanism is a sort of "create like" thing. Created table inherits column names and types. Indexes and constraints are not inherited. Foreign keys still have to be used to guarantee the logical consistency. Zdravko Balorda wrote: > > Hi, > I'm new to inheritance. Does anyone have a good link about it? > > I have just finished an application using parent and child tables. > Tables look a bit strange. :) > > Inheritance seems a good replacement for foreign keys. One can > completely forget about them which simplifies programming. > A great idea, this inheritance. > > Regards, Zdravko > -- Mladen Gogala Sr. Oracle DBA 1500 Broadway New York, NY 10036 (212) 329-5251 http://www.vmsinfo.com The Leader in Integrated Media Intelligence Solutions
В списке pgsql-novice по дате отправления: