Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 10673633931 for ; Tue, 20 Apr 2010 15:47:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22442-01 for ; Tue, 20 Apr 2010 18:47:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vexbert.mr-paradox.net (vexbert.mr-paradox.net [198.145.180.174]) by mail.postgresql.org (Postfix) with ESMTP id 96155632919 for ; Tue, 20 Apr 2010 15:47:28 -0300 (ADT) Received: by vexbert.mr-paradox.net (Postfix, from userid 18391) id CB6B2845CE; Tue, 20 Apr 2010 14:47:27 -0400 (EDT) Date: Tue, 20 Apr 2010 11:47:27 -0700 From: David Kerr To: Robert Haas Cc: pgsql-performance@postgresql.org Subject: Re: Very high effective_cache_size == worse performance? Message-ID: <20100420184727.GE53489@mr-paradox.net> References: <20100420173936.GA50886@mr-paradox.net> <20100420180351.GA51940@mr-paradox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/257 X-Sequence-Number: 38507 On Tue, Apr 20, 2010 at 02:15:19PM -0400, Robert Haas wrote: - On Tue, Apr 20, 2010 at 2:03 PM, David Kerr wrote: - > that thought occured to me while I was testing this. I ran a vacuumdb -z - > on my database during the load and it didn't impact performance at all. - - The window to run ANALYZE usefully is pretty short. If you run it - before the load is complete, your stats will be wrong. If you run it - after the select statements that hit the table are planned, the - updated stats won't arrive in time to do any good. right, but i'm loading 20 million records in 1000 record increments. so the analyze should affect all subsequent increments, no? - > I did turn on log_min_duration_statement but that caused performance to be unbearable, - > but i could turn it on again if it would help. - - I think you need to find a way to identify exactly which query is - running slowly. You could sit there and run "select * from - pg_stat_activity", or turn on log_min_duration_statement, or have your - application print out timestamps at key points, or some other - method... I'm on it. Dave