We have created extended statistics between two columns on a large table. When looking at pg_statistic_ext the value for n_distinct for the combined columns is off of the actual number of distinct values by approixmately 40%. This is leading to a poor choice of leading tables in some of our joins.
With single column statistics inaccurate n_distinct values can be corrected with "alter table alter column set n_distinct ="
Is there a way to fix incorrect n_distinct values for extended statisitics?
Thanks,
Craig Jackson
Есть вопросы? Напишите нам!
✖
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера