Re: a primer on trigger?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: newsreader(at)mediaone(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: a primer on trigger?
Date: 2001-05-04 17:57:09
Message-ID: Pine.BSF.4.21.0105041054110.60318-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 4 May 2001 newsreader(at)mediaone(dot)net wrote:

> It _is_ quite trivial to write a safe perl
> trigger especially because I control both client
> and server end of postgres. With C it
> will be whole new game for me.

I didn't quite follow the original explanation
of what you're doing, but the safeness thing
was more:
You insert row (1,1,1) into table
Your trigger goes off, does something that
doesn't affect this database (say like
writing a file with 1,1,1 or modifying
another database)
You rollback or an error occurs.
The results of your trigger persist, but
the data isn't in the database anymore (well
it is, but marked dead). If you're expecting
that the outside thing is an accurate representation
of the db, you're in trouble.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mlw 2001-05-04 18:01:06 Re: Metaphone function attachment
Previous Message Othman Laraki 2001-05-04 17:46:26 RE: RE: Can't get Postgres to use indices