Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 392C6B5DC0A for ; Tue, 20 Sep 2011 12:25:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 87502-08 for ; Tue, 20 Sep 2011 15:25:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from oproxy3-pub.bluehost.com (oproxy3-pub.bluehost.com [69.89.21.8]) by mail.postgresql.org (Postfix) with SMTP id 2F105B5DC09 for ; Tue, 20 Sep 2011 12:25:34 -0300 (ADT) Received: (qmail 21462 invoked by uid 0); 20 Sep 2011 15:25:32 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by oproxy3.bluehost.com with SMTP; 20 Sep 2011 15:25:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=e9jiPGyA3+KkE0SWP46xCGLxwKgF+SEr/+8Nkk2W3OU=; b=NnPuPT9cxWopLVuaWSVhXmtc5+J7lOCR+Z7OJEplNe6aImsCe3X9pO4z6YyhXngizJb3Pe1XLOk7KHnVVzf6EWMj5rag16csZkWD0mJ+ZDIag7SqMS/AORKI0nQXwTC6; Received: from [189.31.12.150] (helo=[10.3.2.5]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R62CS-0000gM-0c; Tue, 20 Sep 2011 09:25:32 -0600 Message-ID: <4E78B02A.6060605@timbira.com> Date: Tue, 20 Sep 2011 12:24:26 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Marti Raudsepp CC: Etsuro Fujita , pgsql-hackers@postgresql.org Subject: Re: WIP: Collecting statistics on CSV file data References: <4E6DE18B.4010505@lab.ntt.co.jp> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 189.31.12.150 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/961 X-Sequence-Number: 195150 On 20-09-2011 11:12, Marti Raudsepp wrote: > 2011/9/12 Etsuro Fujita: >> This is called when ANALYZE command is executed. (ANALYZE >> command should be executed because autovacuum does not analyze foreign >> tables.) > > This is a good idea. > > However, if adding these statistics requires an explicit ANALYZE > command, then we should also have a command for resetting the > collected statistics -- to get it back into the un-analyzed state. > Why would you want this? If the stats aren't up to date, run ANALYZE periodically. Remember that it is part of the DBA maintenance tasks [1]. [1] http://www.postgresql.org/docs/current/static/maintenance.html -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento