Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 59DE79FA326 for ; Sun, 29 Jul 2007 15:02:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 27396-10 for ; Sun, 29 Jul 2007 15:02:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 589F39FA31A for ; Sun, 29 Jul 2007 15:02:27 -0300 (ADT) Received: from alvh.no-ip.org ([190.95.0.211]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l6TI2NYj019684; Sun, 29 Jul 2007 11:02:24 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 30B194381D9; Sun, 29 Jul 2007 11:02:20 -0700 (PDT) Date: Sun, 29 Jul 2007 14:02:20 -0400 From: Alvaro Herrera To: Scott Marlowe Cc: Bruno Rodrigues Siqueira , pgsql-performance@postgresql.org Subject: Re: select on 1milion register = 6s Message-ID: <20070729180220.GA4051@alvh.no-ip.org> Mail-Followup-To: Scott Marlowe , Bruno Rodrigues Siqueira , pgsql-performance@postgresql.org References: <46ABA01E.8000802@emolecules.com> <002001c7d153$944f3c60$e900a8c0@brunolaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Sun, 29 Jul 2007 11:02:28 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/414 X-Sequence-Number: 26098 Scott Marlowe wrote: > On 7/28/07, Bruno Rodrigues Siqueira wrote: > > stats_start_collector = off > > #stats_command_string = off > > #stats_block_level = off > > #stats_row_level = off > > #stats_reset_on_server_start = off > > I think you need stats_row_level on for autovacuum, but I'm not 100% sure. That's correct (of course you need "start_collector" on as well). Most likely, autovacuum is not even running. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.