Re: Trigger is taking time to fire - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: Trigger is taking time to fire
Date
Msg-id dcc563d10807141108y755948daw491ad7e0b71d336c@mail.gmail.com
Whole thread Raw
In response to Trigger is taking time to fire  ("Ramasubramanian" <ramasubramanian.g@renaissance-it.com>)
List pgsql-performance
On Sun, Jul 13, 2008 at 11:59 PM, Ramasubramanian
<ramasubramanian.g@renaissance-it.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.

pgsql-performance by date:

Previous
From: "Leví Teodoro da Silva"
Date:
Subject: Re: [QUESTION]Concurrent Access
Next
From: Greg Smith
Date:
Subject: Re: 3ware vs Areca