Re: Stored Procedure and Trigger they puzzle me

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Stored Procedure and Trigger they puzzle me
Дата
Msg-id 52EF20B2E3209443BC37736D00C3C1380BEC9934@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на Stored Procedure and Trigger they puzzle me  (Lars Heidieker <lars@heidieker.de>)
Ответы Re: Stored Procedure and Trigger they puzzle me  (Lars Heidieker <lars@heidieker.de>)
Список pgsql-general
> The strange thing is:
> insert is OK (materialized path gets populated)
> update of parent column is OK old values get delete and new ones get
> inserted
> but if the exception handling of the unique_violation exception is
> removed an update on the id column fails, with
> an duplicate pkey violation an the self reference in the
> materialized
> path eg for the values (25, 25)
>
> It works OK with ignoring the exception but why is the exception
> thrown in the first place.

Could you provide a sequence of INSERT and UPDATE statements
that produce the problem you describe?

Yours,
Laurenz Albe

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: installing postgres on win Me...
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Stored Procedure and Trigger they puzzle me