Re: very slow update query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: very slow update query
Дата
Msg-id 4217.1343675435@sss.pgh.pa.us
обсуждение исходный текст
Ответ на very slow update query  (Ilija Vidoevski <ilija.vidoevski@yahoo.com>)
Ответы Re: very slow update query  (Ilija Vidoevski <ilija.vidoevski@yahoo.com>)
Список pgsql-novice
Ilija Vidoevski <ilija.vidoevski@yahoo.com> writes:
> Explain query plan is:

> "Update on finarh� (cost=0.00..12049.99 rows=177714 width=172)"
> "� ->� Seq Scan on finarh� (cost=0.00..12049.99 rows=177714 width=172)"

> Why execution time is so loooong ?

EXPLAIN ANALYZE output might be more informative.  One thing it would
tell us is if the time is going into foreign key checks, for instance.
You've provided no information whatever about the table's schema, so
it's impossible to guess if the time is going into the actual updates,
or index updates, or constraint checks, or TOAST overhead, or what.

There's some info here about the type of information that's useful
when trying to debug a performance problem:
http://wiki.postgresql.org/wiki/Slow_Query_Questions

            regards, tom lane

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

Предыдущее
От: Ilija Vidoevski
Дата:
Сообщение: Re: very slow update query
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.4.12 log truncation not working?