Re: Trigger is taking time to fire

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: Ramasubramanian <ramasubramanian(dot)g(at)renaissance-it(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Trigger is taking time to fire
Date: 2008-07-14 18:08:13
Message-ID: dcc563d10807141108y755948daw491ad7e0b71d336c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sun, Jul 13, 2008 at 11:59 PM, Ramasubramanian
<ramasubramanian(dot)g(at)renaissance-it(dot)com> wrote:
>
> Hi All,
> I am having a trigger in table, If i update the the table manually it is
> not taking time(say 200ms per row), But if i update the table through
> procedure the trigger is taking time to fire(say 7 to 10 seconds per row).
>
> How can i make the trigger to fire immediately ?

I'm thinking the user defined function is using a cached query plan.
Try using execute to see if it runs faster that way.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2008-07-15 04:13:26 Re: 3ware vs Areca
Previous Message Leví Teodoro da Silva 2008-07-14 14:23:01 Re: [QUESTION]Concurrent Access