Re: Check Constraints and pg_dump

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Check Constraints and pg_dump
Дата
Msg-id 20040302170921.GB27448@wolff.to
обсуждение исходный текст
Ответ на Re: Check Constraints and pg_dump  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers
On Tue, Mar 02, 2004 at 09:45:03 -0500, Robert Treat <xzilla@users.sourceforge.net> wrote:
> 
> Wouldn't a FK on both tables be the appropriate schema?  With the FK on 
> contract being deffered?

No, since he only cares that there is at least one plan for a contract,
not a particular plan. You can do something like this as a hack where
when the plan referenced by the contract gets deleted that the contract
has to be changed to reference another plan or be deleted. But I think
using triggers is a better way to do this.


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: [PATCHES] Foreign key type checking patch
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [PATCHES] Foreign key type checking patch