Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UY23I-0002bd-S8 for pgsql-performance@arkaria.postgresql.org; Thu, 02 May 2013 22:32:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UY23I-0006cM-6k for pgsql-performance@arkaria.postgresql.org; Thu, 02 May 2013 22:32:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UY23H-0006cG-Ck for pgsql-performance@postgresql.org; Thu, 02 May 2013 22:32:35 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UY23E-0005hy-UV for pgsql-performance@postgresql.org; Thu, 02 May 2013 22:32:34 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UY23C-0000WH-GR for pgsql-performance@postgresql.org; Fri, 03 May 2013 00:32:30 +0200 Received: from ppp-46-244-221-120.dynamic.mnet-online.de ([46.244.221.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 May 2013 00:32:30 +0200 Received: from spam_eater by ppp-46-244-221-120.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 May 2013 00:32:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Thomas Kellerer Subject: Re: In progress INSERT wrecks plans on table Date: Fri, 03 May 2013 00:32:20 +0200 Lines: 10 Message-ID: References: <5179E77B.7050601@catalyst.net.nz> <5179ECC5.2010206@archidevsys.co.nz> <5179F259.3010509@catalyst.net.nz> <5179F5C6.8070702@archidevsys.co.nz> <5180E3C8.3010201@catalyst.net.nz> <2121.1367417215@sss.pgh.pa.us> <5181B80D.70404@catalyst.net.nz> <916bff05a5ab130c76d7835abbaf7762.squirrel@mail.catalyst.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-221-120.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <916bff05a5ab130c76d7835abbaf7762.squirrel@mail.catalyst.net.nz> X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org mark.kirkwood@catalyst.net.nz wrote on 03.05.2013 00:19: > I think the idea of telling postgres that we are doing a load is probably > the wrong way to go about this. We have a framework that tries to > automatically figure out the best plans...I think some more thought about > how to make that understand some of the more subtle triggers for a > time-to-do-new-plans moment is the way to go. I understand this is > probably hard - and may imply some radical surgery to how the stats > collector and planner interact. I wonder if "freezing" (analyze, then disable autovacuum) the statistics for the large number of rows would work. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance