Re: Table inheritance

Поиск
Список
Период
Сортировка
От Zdravko Balorda
Тема Re: Table inheritance
Дата
Msg-id hoi228$2tl5$1@news.hub.org
обсуждение исходный текст
Ответ на Re: Table inheritance  (Alan Hodgson <ahodgson@simkin.ca>)
Ответы Re: Table inheritance
Список pgsql-novice
>> A great idea, this inheritance.
>
> It ... doesn't. In fact, it makes them harder, as you need to create them
> and associated indexes on each child table.

Hmm ... But:

SELECT parent_field FROM child_table WHERE child_field = 'something';
does the job. For this one needs foreign key, but if child_table inherits
from parent_table it works without it.

Am I wrong?

Zdravko


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