Re: Bug with child tables referencing parent table?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Bug with child tables referencing parent table?
Дата
Msg-id 20021101104351.O60625-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Bug with child tables referencing parent table?  (Stefan Schwarzer <stefan.schwarzer@tu-clausthal.de>)
Список pgsql-bugs
On Thu, 31 Oct 2002, Stefan Schwarzer wrote:

> I think I've found a bug (see below). If you think it's not a bug, I
> would be thankful for a workaround. I tried omitting the foreign key
> constraint. That works but is unsatisfactory.

Foreign key constraints reference only the table named in the constraint,
not any of its children and isn't inherited to children.  If the row were
in test_parent specifically, it would have worked.  In general I haven't
seen any great workarounds, usually I'd suggest splitting the key columns
to a separate table and have the each table in the tree reference that.

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: posgresql 7.3beta3 compile error in src/pl/plperl (perl extension)
Следующее
От: Jord Tanner
Дата:
Сообщение: Re: hi-problem in creating database in postgresql 7.2.2