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 EA8F99F931E for ; Mon, 8 May 2006 13:27:23 -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 55285-02 for ; Mon, 8 May 2006 13:27:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 049E49F931D for ; Mon, 8 May 2006 13:27:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k48GR6ef027600; Mon, 8 May 2006 12:27:06 -0400 (EDT) To: "Andrus" cc: pgsql-performance@postgresql.org Subject: Re: Query runs 38 seconds for small database! In-reply-to: References: <26838.1147099614@sss.pgh.pa.us> Comments: In-reply-to "Andrus" message dated "Mon, 08 May 2006 19:15:36 +0300" Date: Mon, 08 May 2006 12:27:06 -0400 Message-ID: <27599.1147105626@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/135 X-Sequence-Number: 18922 "Andrus" writes: > I see autovacuum: processing database "mydb" messages in log file and I have > stats_start_collector = on > stats_row_level = on > in config file. Why statistics was out-of-date ? The default autovac thresholds are not very aggressive; this table was probably not large enough to get selected for analysis. regards, tom lane