Re: Questions on RI spec (poss. bugs)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Questions on RI spec (poss. bugs)
Дата
Msg-id Pine.LNX.4.21.0011211932400.781-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Questions on RI spec (poss. bugs)  (Jan Wieck <janwieck@Yahoo.com>)
Список pgsql-hackers
Jan Wieck writes:

> Stephan Szabo wrote:
> >
> >    There's a message on -general about a possible
> > problem in the deferred RI constraints.  He was doing a
> > sequence like:
> > begin
> >  delete
> >  insert
> > end
> > and having it fail even though the deleted key was back in
> > place at the end.
> 
>     Isn't  that  (delete  and  reinsert  the  same  PK)  what the
>     standard means with "triggered data change violation"?

Triggered data change violations can only occur if the same attribute is
changed twice during the same *statement*, not transaction.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: quick english patch
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Crash during WAL recovery?