Re: Slow update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bendik R(dot)Johansen" <bendik(dot)johansen(at)gmail(dot)com>
Cc: PostgreSQL Perform <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Slow update
Date: 2005-04-12 14:35:40
Message-ID: 15725.1113316540@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Bendik R.Johansen" <bendik(dot)johansen(at)gmail(dot)com> writes:
> I am having a bit of trouble updating a single integer column.
> My table has around 10 columns and 260 000 records.

> update no.records set uid = 2;
> (uid is an integer. It has a btree index)

> This update takes more than 20 minutes to execute. Is this normal?

Takes about 20 seconds to update a table of that size on my machine...

What PG version is this? We used to have some performance issues with
very large numbers of equal keys in btree indexes. Does dropping the
index make it faster?

Are there foreign keys referencing this table from other tables?

regards, tom lane

In response to

  • Slow update at 2005-04-12 14:12:32 from Bendik R.Johansen

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Fuhr 2005-04-12 14:43:59 Re: profiling postgresql queries?
Previous Message Alex Turner 2005-04-12 14:18:31 Re: profiling postgresql queries?