Re: Remove fcinfo from statistics update internal functions

Поиск
Список
Период
Сортировка
Искать

Re: Remove fcinfo from statistics update internal functions

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Thu, Sep 03, 2026 at 08:21:49AM +0900, Michael Paquier wrote:
> So, isnull=true is not something that we can enforce using a C
> initializer of the type {0}.  However, it is something that we can
> enforce with an initializer macro, as in the lines of (same for atts
> and rels) in statistics.h: 
> #define RELATION_STATS_VALUES_NULL \
> { \
>    .version = {(Datum) 0, true}, \
>    .relpages = {(Datum) 0, true}, \
>    [...]
> }
> 
> And then use this initializer for the defined structures, for both
> the restore *and* the import code.

In short just the attached, minus the fields that do not need to be
set anymore.
--
Michael
FAQ