Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMl8E-0007h9-8s for pgsql-performance@arkaria.postgresql.org; Thu, 19 Sep 2013 20:47:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VMl8D-0006vn-2y for pgsql-performance@arkaria.postgresql.org; Thu, 19 Sep 2013 20:47:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMl8B-0006vg-VA for pgsql-performance@postgresql.org; Thu, 19 Sep 2013 20:47:20 +0000 Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMl87-0002wG-MP for pgsql-performance@postgresql.org; Thu, 19 Sep 2013 20:47:19 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 54105294021 for ; Thu, 19 Sep 2013 15:47:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gfHEp9i6Lfg3 for ; Thu, 19 Sep 2013 15:47:13 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 336852940EE for ; Thu, 19 Sep 2013 15:47:13 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 1D968294021 for ; Thu, 19 Sep 2013 15:47:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hGAmZQABKqU3 for ; Thu, 19 Sep 2013 15:47:13 -0500 (CDT) Received: from [10.11.29.31] (unknown [204.57.119.28]) by smtp-out-1.01.com (Postfix) with ESMTPSA id AE47A2940E2 for ; Thu, 19 Sep 2013 15:47:12 -0500 (CDT) Message-ID: <523B62CF.5080502@agliodbs.com> Date: Thu, 19 Sep 2013 15:47:11 -0500 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: postgres performance list Subject: Why is n_distinct always -1 for range types? X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 Test: 1. create a table with a range type column. 2. insert 1000 identical values into that column. 3. analyze 4. n-distinct will still be listed as -1 (unique) for the column. Why? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance