Re: many row updates

From: Richard Huxton <dev(at)archonet(dot)com>
To: Uroš Gruber <uros(dot)gruber(at)sir-mag(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: many row updates
Date: 2006-01-26 11:26:36
Message-ID: 43D8B1EC.4010000@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message filip_stoklosa 2006-01-26 14:04:03 locale - polish, poland
Previous Message Mario Weilguni 2006-01-26 11:22:03 Re: Physical column size