Re: very slow update query - Mailing list pgsql-novice

From Tom Lane
Subject Re: very slow update query
Date
Msg-id 4217.1343675435@sss.pgh.pa.us
Whole thread Raw
In response to very slow update query  (Ilija Vidoevski <ilija.vidoevski@yahoo.com>)
Responses Re: very slow update query  (Ilija Vidoevski <ilija.vidoevski@yahoo.com>)
List 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 by date:

Previous
From: Ilija Vidoevski
Date:
Subject: Re: very slow update query
Next
From: Tom Lane
Date:
Subject: Re: 8.4.12 log truncation not working?