pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: Why is n_distinct always -1 for range types?
Date: Wed, 25 Sep 2013 10:29:15 -0700
Message-ID: <52431D6B.30302@agliodbs.com> (raw)
In-Reply-To: <WM!47d052793dc0d37aa6bc59183c0d3aca127c0fd4ee7453df3d18aba1fd542a8fb42bb621eb12c8a54c1a218359715a90!@asav-1.01.com>
References: <523B62CF.5080502@agliodbs.com>
	<WM!47d052793dc0d37aa6bc59183c0d3aca127c0fd4ee7453df3d18aba1fd542a8fb42bb621eb12c8a54c1a218359715a90!@asav-1.01.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 09/19/2013 01:47 PM, Josh Berkus wrote:
> 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?
> 

Anyone?

-- 
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



view thread (3+ messages)  latest in thread

Message-ID: <52431D6B.30302@agliodbs.com>
Permalink:  ../52431D6B.30302@agliodbs.com/
Also on:    postgresql.org/message-id/52431D6B.30302@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: Why is n_distinct always -1 for range types?
  In-Reply-To: <52431D6B.30302@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox