Re: pgsql: Fix EPQ crash from missing partition directory in EState

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: pgsql: Fix EPQ crash from missing partition directory in EState
Дата
Msg-id CA+HiwqHW6iAePVDWg1DDmMWiV9QCNcAH4Ncdt4k0Z-W6KVNqVg@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Fix EPQ crash from missing partition directory in EState  (Amit Langote <amitlan@postgresql.org>)
Список pgsql-committers
On Thu, Oct 16, 2025 at 2:03 PM Amit Langote <amitlan@postgresql.org> wrote:
> Fix EPQ crash from missing partition directory in EState
>
> EvalPlanQualStart() failed to propagate es_partition_directory into
> the child EState used for EPQ rechecks. When execution time partition
> pruning ran during the EPQ scan, executor code dereferenced a NULL
> partition directory and crashed.
>
> Previously, propagating es_partition_directory into the EPQ EState was
> unnecessary because CreatePartitionPruneState(), which sets it on
> demand, also initialized the exec-pruning context.  After commit
> d47cbf474,

Oops, that could’ve been worded better -- I meant “Prior to d47cbf474”
rather than “Previously”.

--
Thanks, Amit Langote



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