Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-performance by date

Next:From: Greg SmithDate: 2008-07-15 04:13:26
Subject: Re: 3ware vs Areca
Previous:From: LevĂ­ Teodoro da SilvaDate: 2008-07-14 14:23:01
Subject: Re: [QUESTION]Concurrent Access

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group