UPDATE and Indexes and Performance

From: Bill Thoen <bthoen(at)gisnet(dot)com>
To: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: UPDATE and Indexes and Performance
Date: 2008-10-15 16:42:49
Message-ID: 48F61D89.20301@gisnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does PG (8.1) ever use existing indexes when executing an UPDATE?

I've got some tables with millions of records and whenever I update a
column that involves most or all the records the EXPLAIN command seems
to indicate that it isn't using the pre-existing indexes. This result in
a slow update, which is further slowed by the presence of indexes. So
when doing a large update should I just drop the indexes first, or is
there some good reason to keep them?

Thanks,
- Bill Thoen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua Tolley 2008-10-15 16:57:00 Re: UPDATE and Indexes and Performance
Previous Message carlos.ohiggins 2008-10-15 16:40:58 create parent after children