From: Scott Marlowe <scott.marlowe@gmail.com>
To: Ramasubramanian <ramasubramanian.g@renaissance-it.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Trigger is taking time to fire
Date: Mon, 14 Jul 2008 12:08:13 -0600
Message-ID: <dcc563d10807141108y755948daw491ad7e0b71d336c@mail.gmail.com> (raw)
In-Reply-To: <011701c8e576$c4bcfa80$324610ac@ramasubramanian>
References: <011701c8e576$c4bcfa80$324610ac@ramasubramanian>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: scott.marlowe@gmail.com, ramasubramanian.g@renaissance-it.com
Subject: Re: Trigger is taking time to fire
In-Reply-To: <dcc563d10807141108y755948daw491ad7e0b71d336c@mail.gmail.com>
References: <011701c8e576$c4bcfa80$324610ac@ramasubramanian> <dcc563d10807141108y755948daw491ad7e0b71d336c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox