Re: triggered data change violation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: triggered data change violation
Дата
Msg-id 11744.985112033@sss.pgh.pa.us
обсуждение исходный текст
Ответ на triggered data change violation  (Cedar Cox <cedarc@visionforisrael.com>)
Список pgsql-interfaces
Cedar Cox <cedarc@visionforisrael.com> writes:
> ERROR:  triggered data change violation on relation "tblstsc2options"

> What is this?  It doesn't happen unless I'm in a transaction.  I'm
> INSERTing a record and then DELETEing it (in the same transaction) and on
> delete I get this error.

That's exactly what it's unhappy about ... but I'm not too clear on
just *why* that should be considered an uncool thing to do when you
have an AFTER trigger on the table.  You're asking in the wrong list
though; try pgsql-hackers or pgsql-sql to see if someone knows why
this is bad.
        regards, tom lane


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

Предыдущее
От: Cedar Cox
Дата:
Сообщение: triggered data change violation
Следующее
От: mike
Дата:
Сообщение: major problem with update