Re: Slow update with simple query

Поиск
Список
Период
Сортировка
От Arnaud Lesauvage
Тема Re: Slow update with simple query
Дата
Msg-id 45816C54.5010602@freesurf.fr
обсуждение исходный текст
Ответ на Re: Slow update with simple query  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Slow update with simple query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Slow update with simple query
Следующее
От: Greg Smith
Дата:
Сообщение: Re: New to PostgreSQL, performance considerations