Re: search_plan_tree(): handling of non-leaf CustomScanState nodes causes segfault

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: search_plan_tree(): handling of non-leaf CustomScanState nodes causes segfault
Дата
Msg-id 412418.1611004408@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: search_plan_tree(): handling of non-leaf CustomScanState nodes causes segfault  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
Zhihong Yu <zyu@yugabyte.com> writes:
> I was thinking that, if sstate->ss_currentRelation is null for the other
> cases, that would be a bug.
> An assertion can be added for the cases ending with T_TidScanState.

Maybe, but there are surely a lot of other places that would crash
in such a case --- places far more often traversed than search_plan_tree.
I do not see any value in complicating search_plan_tree for that.

            regards, tom lane



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

Предыдущее
От: Victor Yegorov
Дата:
Сообщение: Re: Deleting older versions in unique indexes to avoid page splits
Следующее
От: David Geier
Дата:
Сообщение: Re: search_plan_tree(): handling of non-leaf CustomScanState nodes causes segfault