Re: foreign key constraint

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: foreign key constraint
Дата
Msg-id 20030304081751.N53493-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на foreign key constraint  (Dennis Gearon <gearond@cvc.net>)
Список pgsql-general
On Tue, 4 Mar 2003, Dennis Gearon wrote:

> OR, how is it possible to add foreign key constraints, ('cross constraints'), between two tables.
> I tried it in a transaction, but it didn't work. The first  constraint in the table definition
> was DEFERRABLE INITIALLY DEFERRED, but I don't think the parser cared :-) I got this error:

Tom dealt with the first part.  I'll deal with this one.  The initially
deferred refers to the the check time of the constraint, however to make
the constraint requires the table to be there.  I think this is defensible
since you need permissions at the table constraint creation time on the
other table which is pretty much impossible if it doesn't exist. :)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: foreign key constraint
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Q from new user about postgresql?