Re: Consistent segfault in complex query

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Consistent segfault in complex query
Дата
Msg-id 87va7aocud.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: Consistent segfault in complex query  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: Consistent segfault in complex query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:

 Andrew> Simpler testcase, removing the CTE, so this is clearly just
 Andrew> about InitPlan:

So I can see exactly where the problem is, but I'm not sure what the
solution should be.

EvalPlanQualStart copies the param_exec value list explicitly _not_
including the execPlan link, which obviously isn't going to work if the
value has not been computed yet. Should it be forcing the evaluation of
initplans that haven't been run yet, or should the EPQ scan evaluate
them itself from a copy of the plan, or does there need to be some way
to share state? (having the InitPlan be run more than once might be a
problem?)

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: Michael Banck
Дата:
Сообщение: Re: [HACKERS] Exclude schema during pg_restore
Следующее
От: Michael Banck
Дата:
Сообщение: Re: Postgres 11 release notes