Possible copy and past error? (\usr\backend\commands\analyze.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Possible copy and past error? (\usr\backend\commands\analyze.c)
Дата
Msg-id CAEudQAqwAOCpF_xXhfPYqHcNp3DKBqdX0ixxx9-V33F=9-KrQw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Possible copy and past error? (\usr\backend\commands\analyze.c)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
Can someone check if there is a copy and paste error, at file:
\usr\backend\commands\analyze.c, at lines 2225 and 2226?

int num_mcv = stats->attr->attstattarget;
int num_bins = stats->attr->attstattarget;

If they really are the same values, it could be changed to:

int num_mcv = stats->attr->attstattarget;
int num_bins = num_mcv;

To silence this alert.

best regards,
Ranier Vilela

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: backup manifests
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - refactor init functions with buffers