Batch Table Creation - Foreign Key Problem

Поиск
Список
Период
Сортировка
От Daniel Whelan
Тема Batch Table Creation - Foreign Key Problem
Дата
Msg-id 3DFE447D.4080906@ophelan.com
обсуждение исходный текст
Ответы Re: Batch Table Creation - Foreign Key Problem  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-novice
I'm trying to create a set of tables, some of which have a foreign key
pointing to other tables in the same set. The problem arises when it
tries to add a table before the table it depends on has been created. Is
there any way to defer the checking of foreign key dependancies until
after the whole transaction block?

Alternately, would I be better off creating the tables with no foreign
keys, and issuing alter statements at the end to add the keys? Thanks!

Daniel


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems with pg_dump
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Redhat Database ???