Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C2A08650ED8 for ; Thu, 26 Jun 2008 12:04:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 94958-10 for ; Thu, 26 Jun 2008 12:04:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E8697650E82 for ; Thu, 26 Jun 2008 12:04:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m5QF4Lgd016214; Thu, 26 Jun 2008 11:04:22 -0400 (EDT) To: "jay" cc: "'Heikki Linnakangas'" , pgsql-performance@postgresql.org Subject: Re: =?gb2312?B?tPC4tDogW1BFUkZPUk1dIFBvc3RncmVzcWwgdXBkYXRlIG9wIGlzIA==?= =?gb2312?B?dmVyeSB2ZXJ5IHNsb3c=?= In-reply-to: <005101c8d773$ff81b2c0$0644000a@hz.ali.com> References: <473587.97248.qm@web32701.mail.mud.yahoo.com> <004b01c8d671$3dec1630$0544000a@hz.ali.com> <486219B6.7050003@enterprisedb.com> <005101c8d773$ff81b2c0$0644000a@hz.ali.com> Comments: In-reply-to "jay" message dated "Thu, 26 Jun 2008 18:04:18 +0800" Date: Thu, 26 Jun 2008 11:04:21 -0400 Message-ID: <16213.1214492661@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/173 X-Sequence-Number: 30523 "jay" writes: > I know the problem, because there are about 35 million rows , which > cost about 12G disk space and checkpoint segments use 64, but update > operation is in one transaction which lead fast fill up the checkpoint > segments and lead do checkpoints frequently, but checkpoints will cost lots > resources, so update operation become slowly and slowly and bgwrite won't > write because it's not commit yet. > Create a new table maybe a quick solution, but it's not appropriated in some > cases. > If we can do commit very 1000 row per round, it may resolve the > problem. No, that's utterly unrelated. Transaction boundaries have nothing to do with checkpoints. regards, tom lane