Re: Stored Procedure and Trigger they puzzle me - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Stored Procedure and Trigger they puzzle me
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380BEC9934@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to Stored Procedure and Trigger they puzzle me  (Lars Heidieker <lars@heidieker.de>)
Responses Re: Stored Procedure and Trigger they puzzle me  (Lars Heidieker <lars@heidieker.de>)
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: installing postgres on win Me...
Next
From: Alban Hertroys
Date:
Subject: Re: Stored Procedure and Trigger they puzzle me