Re: Autovacuum on partitioned table (autoanalyze)

Поиск
Список
Период
Сортировка
От yuzuko
Тема Re: Autovacuum on partitioned table (autoanalyze)
Дата
Msg-id CAKkQ50_+AXKTS4JUuoD4HDboLddeXgmDZfhJ+oahirnZGKOxbw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Autovacuum on partitioned table (autoanalyze)  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Autovacuum on partitioned table (autoanalyze)  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
I'm sorry for the late reply.

> This version seems to fail under Werror which is used in the Travis builds:
>
> autovacuum.c: In function ‘relation_needs_vacanalyze’:
> autovacuum.c:3117:59: error: ‘reltuples’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
>    anlthresh = (float4) anl_base_thresh + anl_scale_factor * reltuples;
>                                                            ^
> autovacuum.c:2972:9: note: ‘reltuples’ was declared here
>   float4  reltuples;  /* pg_class.reltuples */
>          ^
>

I attach the latest patch that solves the above Werror.
Could you please check it again?

--
Best regards,
Yuzuko Hosoya
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: display offset along with block number in vacuum errors
Следующее
От: Pavel Stehule
Дата:
Сообщение: proposal: enhancing plpgsql debug API - returns text value of variable content