Re: how to inherits the references...

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: how to inherits the references...
Дата
Msg-id 20020711085735.H63911-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на how to inherits the references...  (frederik nietzsche <nietzsche_psql@yahoo.it>)
Ответы Re: how to inherits the references...
Список pgsql-sql
On Thu, 11 Jul 2002, [iso-8859-1] frederik nietzsche wrote:

> as if the sigles where not in the "sigles" table, but
> it's there!
> it's probably because of the way in which psql threats
>  the inheritance.
> my question is (finally): is there some workaround for
> this?? or: am I making some mistakes??

Foreign keys don't inherit to children table on either
the fk or pk side.  Note also that the primary keys in
the above will not guarantee that sigle is unique
across the whole set, only across each table individually.

Pretty much the only workaround I know of is to make a table
with the key columns and have each of the tables in the
inheritance tree have its key columns reference that and anything
that wants to reference the inheritance tree references
the other table instead.



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

Предыдущее
От: Jie Liang
Дата:
Сообщение: Re: pg_restore cannot restore index
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: [HACKERS] please help on query