Re: Inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Inheritance
Дата
Msg-id 2188.1103600726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Inheritance  (Hasnul Fadhly bin Hasan <hasnulfadhly.h@mimos.my>)
Список pgsql-novice
Hasnul Fadhly bin Hasan <hasnulfadhly.h@mimos.my> writes:
> I'm just wondering, what real benefit does inheritance have?  When i
> create two tables, one inherited from the other,
> does that mean i have two tables with same duplicate data or actually
> they are joined in the back end?

It's more like an implicit UNION ALL.  There's no duplication, but when
you specify a SELECT/UPDATE/DELETE over the parent table, the child
table is implicitly processed as well.

            regards, tom lane

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

Предыдущее
От: Hasnul Fadhly bin Hasan
Дата:
Сообщение: Inheritance
Следующее
От: Keith Worthington
Дата:
Сообщение: Re: CAST and timestamp