Re: many row updates - Mailing list pgsql-general

From Richard Huxton
Subject Re: many row updates
Date
Msg-id 43D8B1EC.4010000@archonet.com
Whole thread Raw
In response to many row updates  (Uroš Gruber <uros.gruber@sir-mag.com>)
List pgsql-general
Uroš Gruber wrote:
> Hi!
>
> I have table with row named rank and some other rows. I have about
> 900.000 rows in table and I need to update
> all rows with the same value of rank, so I run update table set rank = 1;
>
> The only problem is speed. I'm waiting about 30 minutes and it's still
> running.
>
> My system is pg8.1 with one SATA HD and P43GHz

And is your disk very busy?

Has this table been updated a lot without being vacuumed regularly?

--
   Richard Huxton
   Archonet Ltd


pgsql-general by date:

Previous
From: Uroš Gruber
Date:
Subject: many row updates
Next
From: Dick Kniep
Date:
Subject: Re: Connected user in a triggerfunction