Re: BUG #17913: alter column set (n_distinct=...) on partition head doesn't work for declarative partitioned tables

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: BUG #17913: alter column set (n_distinct=...) on partition head doesn't work for declarative partitioned tables
Дата
Msg-id CAApHDvqQh7HBALTOa4GsQcdrK0HWgBDD+wH-+0gHbdMxH_j29A@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #17913: alter column set (n_distinct=...) on partition head doesn't work for declarative partitioned tables  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17913: alter column set (n_distinct=...) on partition head doesn't work for declarative partitioned tables  (Maxim Boguk <maxim.boguk@gmail.com>)
Список pgsql-bugs
On Mon, 1 May 2023 at 15:03, PG Bug reporting form
<noreply@postgresql.org> wrote:
> I found that the
> alter table sometable alter somecolumn set (n_distinct=...);
> Doesn't affect distinct values estimation if sometable - declarative
> partitioned table.

It might not be that intuitive, but n_distinct_inherited is the option for that.

Maybe the documentation [1] should mention partition partitions as
well as "inheritance children" is this isn't clear.

David

[1] https://www.postgresql.org/docs/current/sql-altertable.html



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: BUG #17798: Incorrect memory access occurs when using BEFORE ROW UPDATE trigger
Следующее
От: Maxim Boguk
Дата:
Сообщение: Re: BUG #17913: alter column set (n_distinct=...) on partition head doesn't work for declarative partitioned tables