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

From Tom Lane
Subject Re: very slow update query
Date
Msg-id 10296.1343696362@sss.pgh.pa.us
Whole thread Raw
In response to Re: very slow update query  (Ilija Vidoevski <ilija.vidoevski@yahoo.com>)
List pgsql-novice
Ilija Vidoevski <ilija.vidoevski@yahoo.com> writes:
> This is table DDL

What I asked for was EXPLAIN ANALYZE output ... but anyway, the thing
that jumps out at me about that DDL is the six extremely wide indexes
(not even counting the primary key index).  It seems very unlikely
that those are going to repay their update maintenance costs.  I'd
try dropping all but the primary key and seeing if that improves the
update-speed situation at all.  If it does, I'd suggest reading
something about Postgres-oriented index design before you add anything
back.  There's material in the manual here:
http://www.postgresql.org/docs/9.1/static/indexes.html
but the key points I think you are missing is that indexes with more
than a few columns are seldom worth the trouble, and indexes with
identical leading columns are even more seldom worth the trouble.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: WAL tuning advice
Next
From: Jonatan Reiners
Date:
Subject: Re: problem with pg_dump