Re: Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c)

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c)
Дата
Msg-id CAJ7c6TOT+ccb2uuKypM5z=OPPgW07cAFzuq1EsSZb1qcpUfeHQ@mail.gmail.com
обсуждение исходный текст
Ответ на Avoid possible dereference null pointer (src/backend/utils/cache/relcache.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
Hi,

> The function *ScanPgRelation* can return a invalid tuple.
> It is necessary to check the function's return,
> as is already done in other parts of the source.

Good find although I'm not certain if I agree with the patch.

We would be in serious trouble if RelationReloadNailed() could be
called for a non-existing relation. Wouldn't Assert() be more
appropriate?

-- 
Best regards,
Aleksander Alekseev



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