Re: Deferred uniqueness versus foreign keys

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Deferred uniqueness versus foreign keys
Дата
Msg-id 1248815788.18098.198.camel@monkey-cat.sm.truviso.com
обсуждение исходный текст
Ответ на Re: Deferred uniqueness versus foreign keys  (Dean Rasheed <dean.a.rasheed@googlemail.com>)
Ответы Re: Deferred uniqueness versus foreign keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, 2009-07-28 at 22:10 +0100, Dean Rasheed wrote:
> Hmm, yes, looking in the SQL spec, I've just noticed this under 11.8,
> referential constraint definition:
> 
> "The table constraint descriptor describing the <unique constraint
> definition> whose <unique column list> identifies the referenced
> columns shall indicate that the unique constraint is not deferrable."
> 
> which seems like a sensible policy now that I think about it.

Is it a problem to allow unique constraints to be deferrable until the
end of the command though? To meet the spec, "SET i = i + 1" should work
even if "i" is referenced by a FK.

Regards,Jeff Davis



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: plpgsql: support identif%TYPE[], (from ToDo)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Deferred uniqueness versus foreign keys