Re: error handling

From: Verena Ruff <lists(at)triosolutions(dot)at>
To:
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: error handling
Date: 2006-05-10 13:09:36
Message-ID: 4461E610.7070108@triosolutions.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

Sean Davis schrieb:
> Probably the simplest way to do this is to load the data into a temporary
> table without the unique constraint then use SQL to insert a "clean" version
> into the new table. Alternatively, you could use savepoints. If an insert
> fails, just rollback to that savepoint. If it succeeds, commit that
> savepoint.
>
But isn't that more overhead than using the trigger? And while inserting
into the clean table, I would have to test if the value is existing or
not. I don't see the advantage of this compared to the script which was
posted a few weeks ago.

Regards,
Verena

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Verena Ruff 2006-05-10 13:35:06 Re: error handling
Previous Message Verena Ruff 2006-05-10 13:04:20 index not used with inherited tables