[PATCH] Fix division by zero (explain.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH] Fix division by zero (explain.c)
Дата
Msg-id CAEudQAqxf+mbirkO7pAdL61Qw8U8cF_QnEaL101L0tbBUocoQg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Fix division by zero (explain.c)
Список pgsql-hackers
Hi,

Per Coverity.

If has 0 full groups, "we don't need to do anything" and need goes to next.
Otherwise a integer division by zero, can raise.

comments extracted trom explain.c:
 /*
* Since we never have any prefix groups unless we've first sorted
* a full groups and transitioned modes (copying the tuples into a
* prefix group), we don't need to do anything if there were 0 full
* groups.
*/

regards,
Ranier Vilela
Вложения

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