Re: Avoid possible deference NULL pointer (src/backend/optimizer/path/allpaths.c)

Поиск
Список
Период
Сортировка
От Ilia Evdokimov
Тема Re: Avoid possible deference NULL pointer (src/backend/optimizer/path/allpaths.c)
Дата
Msg-id cb8484eb-4d73-46d8-9a5f-a72cf896dd0f@tantorlabs.com
обсуждение исходный текст
Ответ на Re: Avoid possible deference NULL pointer (src/backend/optimizer/path/allpaths.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Avoid possible deference NULL pointer (src/backend/optimizer/path/allpaths.c)
Список pgsql-hackers
But what should we do if cheapest == NULL further? Should we return NULL 
of get_cheapest_parameterized_child_path() function?

If it is, we should write it like this:

if (cheapset == NULL || bms(PATH_REQ_OUTER(cheapset), required_outer))
     return cheapest;

I'll look into this issue further.

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC.




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