Re: Trigger functions

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: marc(dot)drouin(at)fondex(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger functions
Date: 2003-04-02 03:44:01
Message-ID: 3E8A5C81.F49CC132@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> Marc Drouin <marc(dot)drouin(at)fondex(dot)ca> writes:
> > The function is triggered on insert and is supposed to fill a field in the
> > table based on three other fields of the same table (ex: field D = Field A X
> > Field B X Field C). The addition of the trigger to teh table has slowed
> > down the insert procedd considerably. It takes approximatly two second for
> > a simple insert.
>
> That's pretty slow, all right, but if you're not going to show us the
> details there's not much advice we can offer.

Does the trigger update the table or the pseudo row NEW?

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2003-04-02 03:51:44 Re:
Previous Message Bruno Wolff III 2003-04-02 02:49:25 Re: Earth distance