Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJJr-0003Rn-2k for pgsql-performance@arkaria.postgresql.org; Mon, 21 Jan 2013 15:29:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TxJJq-0005x4-Hy for pgsql-performance@arkaria.postgresql.org; Mon, 21 Jan 2013 15:29:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJJo-0005w2-Rg for pgsql-performance@postgresql.org; Mon, 21 Jan 2013 15:29:53 +0000 Received: from qmta13.emeryville.ca.mail.comcast.net ([2001:558:fe2d:44:76:96:27:243]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJJm-0001dg-3m for pgsql-performance@postgresql.org; Mon, 21 Jan 2013 15:29:52 +0000 Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta13.emeryville.ca.mail.comcast.net with comcast id qeWM1k00B1wfjNsADfVl6j; Mon, 21 Jan 2013 15:29:45 +0000 Received: from [192.168.1.176] ([69.142.185.164]) by omta23.emeryville.ca.mail.comcast.net with comcast id qfVj1k00L3ZEZL58jfVkvo; Mon, 21 Jan 2013 15:29:45 +0000 Message-ID: <50FD5EDE.8010002@comcast.net> Date: Mon, 21 Jan 2013 10:29:34 -0500 From: AJ Weber User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Analyze and default_statistics_target References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1358782185; bh=SUhXweyzjOL3urFlXo4lX4A5EF1rGziBfr8EG/YL+3g=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=nCaQA3kKOl+gcEnJ6U2ru9Bf3mpYRJa9FUxskH96Tf0p3YPsEfMF8B+Fm3uBlGpsj h+DzEa5+bGsuFs5QzjPt6UQwO8v+UnSh3t+fl/eTi6ByUPDiIcuJFlnD57g6KVFekW ZzgvzUGHVCft96uPbW/YlYAmBR2L2k0z8vwA1Vn79K7Ym08HfsKVT0S3gUT3NmD3Ez moNAGUPj/jSavUPfRdnT1ZjZ2YaaoRxsWFRuLXXN4/fc3CiOTGD1YSwXTGTDdV7LQX iMHtLJ3mCeErS5YYfqvsrXHIsk8ZM6DT0Uz6z0JhdGL/Z45aJNVPJz5Qmxkxqcoicx /zUaYcTC6jVIw== X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org I was under the impression that the default_statistics_target was a percentage of rows to analyze. Maybe this is not the case? I ran an analyze during a "quiet point" last night and for a few of my large tables, I didn't get what I consider a reasonable sampling of rows. When running with "verbose" enabled, it appeared that a maximum of 240000 rows were being analyzed, including on tables exceeding 4-8mm rows. My default_statistics_target = 80. Shouldn't I be analyzing a larger percentage of these big tables? What is the unit-of-measure used for default_statistics_target? Thanks in advance, AJ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance