Re: insert or update violates foreign key constraint.why?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: insert or update violates foreign key constraint.why?
Дата
Msg-id 14140.1086055511@sss.pgh.pa.us
обсуждение исходный текст
Ответ на insert or update violates foreign key constraint.why?  (Oleg Mayevskiy <oleg.mayevskiy@s2002.tu-chemnitz.de>)
Список pgsql-sql
Oleg Mayevskiy <oleg.mayevskiy@s2002.tu-chemnitz.de> writes:
> it seems to be a simple problem, but it is not.

Yes it is ... you're expecting the RI triggers to fire during the
plpgsql function, but in fact they fire at completion of the outer
statement that called the plpgsql function.

There's been some debate about whether this is really the most
desirable behavior, but that's how it is at the moment.
        regards, tom lane


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

Предыдущее
От: CoL
Дата:
Сообщение: Re: multi results with functions
Следующее
От: "email lists"
Дата:
Сообщение: assistance on self join pls