Re: after trigger question

From: Feite Brekeveld <feite(dot)brekeveld(at)osiris-it(dot)nl>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: after trigger question
Date: 2001-03-22 12:02:16
Message-ID: 3AB9E9C8.95D6184D@osiris-it.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:

> On Thu, 22 Mar 2001, Feite Brekeveld wrote:
>
> > Hi,
> >
> > I have put an AFTER INSERT TRIGGER on a table.
> >
> > If the triggerfunction fails to do an operation shouldn't the insert
> > already have taken place ?
>
> It depends on what you mean by fails to do an operation. If it
> raises an actual error the transaction is going to be rolled back so the
> insert is effectively undone.

The conversion of a timestring to an integer value fails because it is
sometimes illegal formatted , but I would like to have the the original
data inserted in the table as a string.

--
Feite Brekeveld
feite(dot)brekeveld(at)osiris-it(dot)nl

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joel Burton 2001-03-22 12:14:51 String REPLACE function
Previous Message Richard Huxton 2001-03-22 11:19:40 Re: Foreign keys/unique values and views