Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id DA1262E2DCF for ; Wed, 12 Mar 2008 12:48:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 46132-02 for ; Wed, 12 Mar 2008 12:47:32 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by postgresql.org (Postfix) with ESMTP id C8F5A2E2DAB for ; Wed, 12 Mar 2008 12:47:30 -0300 (ADT) Received: by ti-out-0910.google.com with SMTP id y6so1360313tia.5 for ; Wed, 12 Mar 2008 08:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=j34YIyVUXHrx3mQkjH/9IEzpoQemV8sE6ea8JTpu3aU=; b=Nbo9A+RegFLicBcokecSsPFB2bHPK7/UX8ai810l9uGXF5MP4qtJtEvEeo7xSs8e5yWrfpxhbwHpM69ZM0LAPaIbDcRgHDsT47PzLEgISVTwWh5k8t/bsvDZw/47i5qImBUdWyoZOl9P/eJCe4OE9GK428TH+5f0IINnWFnQlGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oD6zfQJ5gPcIEJIrOHRG/9A/p0Q7nyHAGVexyMwzW5+wR7fqhXWyj4N5Pywk9ngx0d5B1cGs/8nX8DCr0G2Q1+a2NET7g0Ath/+YISgQ5dlABTRKAIXDtLh99HdI5P/GqSZtXrxv5KvbN0mMD4kd0nr9gRs0B0xHwauKXFZAgcA= Received: by 10.150.204.19 with SMTP id b19mr4632408ybg.35.1205336840567; Wed, 12 Mar 2008 08:47:20 -0700 (PDT) Received: by 10.150.97.21 with HTTP; Wed, 12 Mar 2008 08:47:20 -0700 (PDT) Message-ID: <2e78013d0803120847k2e8afbedrc39e29e5194d3c6e@mail.gmail.com> Date: Wed, 12 Mar 2008 21:17:20 +0530 From: "Pavan Deolasee" To: "Heikki Linnakangas" Subject: Re: [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit Cc: "Tom Lane" , "Craig Ringer" , pgsql-patches In-Reply-To: <47D7DE12.80700@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/190 X-Sequence-Number: 5253 On Wed, Mar 12, 2008 at 7:13 PM, Heikki Linnakangas wrote: > > > Yep, patch attached. I also changed xactGetCommittedChildren to return > the original array instead of copying it, as Alvaro suggested. > Any comments on the flag based approach I suggested earlier ? Am I missing some normal scenario where it won't work well ? Thanks, Pavan -- Pavan Deolasee EnterpriseDB http://www.enterprisedb.com