Re: Postgresql update op is very very slow - Mailing list pgsql-performance

From Rusty Conover
Subject Re: Postgresql update op is very very slow
Date
Msg-id F70DB945-81FB-4725-84E4-D1A8A90B6490@infogears.com
Whole thread Raw
In response to Postgresql update op is very very slow  ("jay" <jackem.mojx@alibaba-inc.com>)
Responses 答复: [PERFORM] Postgresql update op is very very slow
List pgsql-performance
On Jun 24, 2008, at 9:12 PM, jay wrote:

>
> I've a table with about 34601755 rows ,when I execute 'update
> msg_table set
> type=0;' is very very slow, cost several hours, but still not
> complete?
>
> Why postgresql is so slowly? Is the PG MVCC problem?
>
> But I try it on Mysql, the same table and rows, it only cost about 340
> seconds.
>
> Any idea for the problem?
>
>
> My machine config:
>     Memory 8G, 8 piece 15K disk , 2CPU(Quad-Core) AMD
>     OS: Red Hat AS4
>
> My postgres.conf main parameter is following:
>
>

Hi Jay,

Is the "type" used in an index?  Have you properly increased your
number of checkpoint segments?  Any warnings in in your log file about
excessive checkpointing?

Cheers,

Rusty
--
Rusty Conover
InfoGears Inc.
http://www.infogears.com







pgsql-performance by date:

Previous
From: bijayant kumar
Date:
Subject: Re: [SOLVED] Postgresql is very slow
Next
From: "jay"
Date:
Subject: 答复: [PERFORM] Postgresql update op is very very slow