pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedTrigger is taking time to fire
3+ messages / 2 participants
[nested] [flat]
* Trigger is taking time to fire
@ 2008-07-11 07:35 Ramasubramanian <ramasubramanian.g@renaissance-it.com>
0 siblings, 0 replies; 3+ messages in thread
From: Ramasubramanian @ 2008-07-11 07:35 UTC (permalink / raw)
To: pgsql-performance
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?
Regards,
Ram
^ permalink raw reply [nested|flat] 3+ messages in thread
* Trigger is taking time to fire
@ 2008-07-14 05:59 Ramasubramanian <ramasubramanian.g@renaissance-it.com>
2008-07-14 18:08 ` Re: Trigger is taking time to fire Scott Marlowe <scott.marlowe@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Ramasubramanian @ 2008-07-14 05:59 UTC (permalink / raw)
To: pgsql-performance
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 ?
Regards,
Ram
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Trigger is taking time to fire
2008-07-14 05:59 Trigger is taking time to fire Ramasubramanian <ramasubramanian.g@renaissance-it.com>
@ 2008-07-14 18:08 ` Scott Marlowe <scott.marlowe@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Scott Marlowe @ 2008-07-14 18:08 UTC (permalink / raw)
To: Ramasubramanian <ramasubramanian.g@renaissance-it.com>; +Cc: 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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-07-14 18:08 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-11 07:35 Trigger is taking time to fire Ramasubramanian <ramasubramanian.g@renaissance-it.com>
2008-07-14 05:59 Trigger is taking time to fire Ramasubramanian <ramasubramanian.g@renaissance-it.com>
2008-07-14 18:08 ` Scott Marlowe <scott.marlowe@gmail.com>
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