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 6CAD09F931E for ; Mon, 8 May 2006 14:38:43 -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 63073-07 for ; Mon, 8 May 2006 14:38:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 301D49F931D for ; Mon, 8 May 2006 14:38:37 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id A0A5531509; Mon, 8 May 2006 19:38:35 +0200 (MET DST) From: "Andrus" X-Newsgroups: pgsql.performance Subject: Re: Query runs 38 seconds for small database! Date: Mon, 8 May 2006 20:36:42 +0300 Organization: Hub.Org Networking Services Lines: 13 Message-ID: References: <26838.1147099614@sss.pgh.pa.us> <27599.1147105626@sss.pgh.pa.us> <20060508172816.GU99570@pervasive.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/142 X-Sequence-Number: 18929 > BTW, you might want to cut all the autovac thresholds in half; that's > what I typically do. I added ANALYZE command to my procedure which creates and loads data to postgres database from other DBMS. This runs only onvce after installing my application. I hope this is sufficient. If default threshold is so conservative values I expect there is some reason for it. Andrus.