slow UPDATE speed - Mailing list pgsql-general

From GUO Zhijun
Subject slow UPDATE speed
Date
Msg-id 1c5268c6-5a23-4c41-884f-837695cc321b@d4g2000prg.googlegroups.com
Whole thread Raw
List pgsql-general
Hi all,

I met a problem that it's slow to update all rows in a table.  My
procedures are:

ALTER TABLE user ADD COLUMN foo smallint;
UPDATE user SET foo = 2;
ALTER TABLE user ALTER COLUMN foo SET NOT NULL;
ALTER TABLE user ALTER COLUMN foo SET DEFAULT 2;

The 2nd step took me 2600s.  It's a simple table having 0.4M records
and it's running on a test machine, that is, no load at all.
Is there any problem with my settings or any other?

Thank you.

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: PostgreSQL Beta4 released
Next
From: rokj
Date:
Subject: Re: One or more tables?