Re: Need advice about triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need advice about triggers
Дата
Msg-id 21262.1063118448@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Need advice about triggers  ("Mindaugas Riauba" <mind@bi.lt>)
Список pgsql-performance
"Mindaugas Riauba" <mind@bi.lt> writes:
>> Well, try it without the trigger. If performance improves markedly, it
>> might be worth rewriting in C.

>   Nope. Execution time is practically the same without trigger.

>> If not, you're probably saturating the disk I/O -

>   Bottleneck in this case is CPU. postmaster process uses almost 100% of
> CPU.

That seems very odd.  Updates should be I/O intensive, not CPU
intensive.  I wouldn't have been surprised to hear of a plpgsql trigger
consuming lots of CPU, but without it, I'm not sure where the time is
going.  Can you show us an EXPLAIN ANALYZE result for a typical update
command?

            regards, tom lane

В списке pgsql-performance по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Need advice about triggers
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Need advice about triggers