Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E3FB86326BA for ; Mon, 30 Nov 2009 23:46:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 09056-08 for ; Tue, 1 Dec 2009 03:46:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outA.internet-mail-service.net (outa.internet-mail-service.net [216.240.47.224]) by mail.postgresql.org (Postfix) with ESMTP id 4F5F263423D for ; Mon, 30 Nov 2009 23:46:44 -0400 (AST) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B2CB3B7554 for ; Mon, 30 Nov 2009 19:46:41 -0800 (PST) X-Client-Authorized: MaGic Cook1e Received: from [192.168.2.105] (adsl-71-135-168-64.dsl.pltn13.pacbell.net [71.135.168.64]) by idiom.com (Postfix) with ESMTP id 4D15C2D601A for ; Mon, 30 Nov 2009 19:46:41 -0800 (PST) Message-ID: <4B1491A3.6080602@obviously.com> Date: Mon, 30 Nov 2009 19:46:43 -0800 From: Bryce Nesbitt User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: pg_restore followed by immediate VACUUM ANALYZE Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.619 tagged_above=-10 required=5 tests=AWL=-0.434, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200911/85 X-Sequence-Number: 33436 I looking at a script that does a pg_restore followed by an immediate VACUUM ANALYZE (postgres 8.3). I'm told that without the VACUUM ANALYZE the database will run slow. Does this ring true? Does pg_restore not update the query planner statistics?