Re: Slow update with simple query - Mailing list pgsql-performance

From Arnaud Lesauvage
Subject Re: Slow update with simple query
Date
Msg-id 45816C54.5010602@freesurf.fr
Whole thread Raw
In response to Re: Slow update with simple query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Slow update with simple query
List pgsql-performance
Tom Lane a écrit :
> Arnaud Lesauvage <thewild@freesurf.fr> writes:
>> I must be missing something, so here is the full table description.
>
> It looks pretty harmless, except for
>
>> CREATE TRIGGER parse_log_trigger
>>     BEFORE INSERT
>>     ON statistiques.log
>>     FOR EACH ROW
>>     EXECUTE PROCEDURE statistiques.parse_log_trigger();
>
> It seems the time must be going into this trigger function.  What
> does it do?

A lot of things ! Indeed, if it runs it will very badly hurt performances (table
lookups, string manipulation, etc...) !
But it should only be tringered on INSERTs, and I am doing an UPDATE !

I can post the function's body if you want.

Regards
--
Arnaud


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Slow update with simple query
Next
From: Greg Smith
Date:
Subject: Re: New to PostgreSQL, performance considerations