Why is n_distinct always -1 for range types?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Why is n_distinct always -1 for range types?
Дата
Msg-id 523B62CF.5080502@agliodbs.com
обсуждение исходный текст
Ответы Re: Why is n_distinct always -1 for range types?
Список 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 по дате отправления:

Предыдущее
От: Brian Fehrle
Дата:
Сообщение: Re: View with and without ::text casting performs differently.
Следующее
От: Bartłomiej Romański
Дата:
Сообщение: Planner performance extremely affected by an hanging transaction (20-30 times)?