Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C609F2E0230 for ; Sun, 16 Mar 2008 23:21:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 17730-02-7 for ; Sun, 16 Mar 2008 23:20:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AA1B42E2CC4 for ; Sun, 16 Mar 2008 23:20:43 -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 m2H2KdZh020892; Sun, 16 Mar 2008 22:20:39 -0400 (EDT) To: "Heikki Linnakangas" cc: "Craig Ringer" , "pgsql-patches" Subject: Re: [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit In-reply-to: <47D7DE12.80700@enterprisedb.com> References: <47D505AF.4040101@postnewspapers.com.au> <47D5150C.8090802@enterprisedb.com> <23588.1205159638@sss.pgh.pa.us> <47D54A47.3030608@postnewspapers.com.au> <47D54DB2.4020405@enterprisedb.com> <24304.1205162440@sss.pgh.pa.us> <47D67C3F.1030406@enterprisedb.com> <5827.1205269597@sss.pgh.pa.us> <47D7DE12.80700@enterprisedb.com> Comments: In-reply-to "Heikki Linnakangas" message dated "Wed, 12 Mar 2008 13:43:46 -0000" Date: Sun, 16 Mar 2008 22:20:39 -0400 Message-ID: <20891.1205720439@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/212 X-Sequence-Number: 5275 "Heikki Linnakangas" writes: > Yep, patch attached. I also changed xactGetCommittedChildren to return > the original array instead of copying it, as Alvaro suggested. Applied with minor corrections (mostly comment fixes, but there were a couple of real mistakes). regards, tom lane