X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E26429F9AFD for ; Mon, 8 May 2006 17:03:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 88091-01 for ; Mon, 8 May 2006 17:03:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx3.surnet.cl (mx3.surnet.cl [216.155.73.182]) by postgresql.org (Postfix) with ESMTP id 64ED59F931D for ; Mon, 8 May 2006 17:03:00 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx3.surnet.cl with ESMTP; 08 May 2006 16:02:58 -0400 X-IronPort-AV: i="4.04,172,1144036800"; d="scan'208"; a="12349862:sNHT24524204" Received: from alvh.no-ip.org (201.220.122.210) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 443B7DDC003C2A0A; Mon, 8 May 2006 16:02:59 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 26562C31DEB; Mon, 8 May 2006 16:02:59 -0400 (CLT) Date: Mon, 8 May 2006 16:02:59 -0400 From: Alvaro Herrera To: Tom Lane Cc: Jan de Visser , pgsql-performance@postgresql.org, "Matthew T. O'Connor" Subject: Re: Query runs 38 seconds for small database! Message-ID: <20060508200258.GJ3351@surnet.cl> Mail-Followup-To: Tom Lane , Jan de Visser , pgsql-performance@postgresql.org, "Matthew T. O'Connor" References: <20060508174604.GX99570@pervasive.com> <200605081519.39293.jdevisser@digitalfairway.com> <29126.1147117718@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29126.1147117718@sss.pgh.pa.us> User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/153 X-Sequence-Number: 18940 Tom Lane wrote: > Jan de Visser writes: > > On Monday 08 May 2006 14:10, Andrus wrote: > >> I created empty table konto and loaded more that 219 records to it during > >> database creation. > >> So it seems that if table grows from zero to more than 219 times larger > >> then it was still not processed. > > > That's because you need at least 500 rows for analyze and 100 for a vacuum, > > (autovacuum_vacuum_threshold = 1000, autovacuum_analyze_threshold = 500). > > This crystallizes something that's been bothering me for awhile, > actually: why do the "threshold" variables exist at all? Matthew would know about that -- he invented them. I take no responsability :-) -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support