Why is n_distinct always -1 for range types? - Mailing list pgsql-performance

From Josh Berkus
Subject Why is n_distinct always -1 for range types?
Date
Msg-id 523B62CF.5080502@agliodbs.com
Whole thread Raw
Responses Re: Why is n_distinct always -1 for range types?
List pgsql-performance
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


pgsql-performance by date:

Previous
From: Brian Fehrle
Date:
Subject: Re: View with and without ::text casting performs differently.
Next
From: Bartłomiej Romański
Date:
Subject: Planner performance extremely affected by an hanging transaction (20-30 times)?