Re: BUG #17942: vacuumdb doesn't populate extended statistics on partitioned tables

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #17942: vacuumdb doesn't populate extended statistics on partitioned tables
Дата
Msg-id ZHQ2uUIkRmuY6Glt@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #17942: vacuumdb doesn't populate extended statistics on partitioned tables  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-bugs
On Fri, May 26, 2023 at 06:02:07PM +0900, Kyotaro Horiguchi wrote:
> For 12 or later, pg_partition_ancestors() is available. Thus something
> like the following query would work.

Yes, we will need to be a bit more imaginative for older servers :(

Any pre-11 logic added had better mention the compatibility tweak it
required, and that pg_partition_ancestors() could be used to simplify
the filtering a lot for the analyze case.  It would be good to add
some test cases to check all the patterns we would need to look after,
for both the VACUUM and ANALYZE cases.  Perhaps with vacuumdb
--verbose and a pattern match check of the logs produced, with at
least 2 level of partitioning to check after the case of ANALYZE run
across a rather complex partitioning tree?
--
Michael

Вложения

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

Предыдущее
От: jian he
Дата:
Сообщение: Re: Comparing date strings with jsonpath expression
Следующее
От: José Lorenzo Urdaneta Rodriguez
Дата:
Сообщение: Re: Server crash with parallel workers with Postgres 14.7