pgsql: Always call ExecShutdownNode() if appropriate.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Always call ExecShutdownNode() if appropriate.
Дата
Msg-id E1iVjBO-0001Yq-46@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Always call ExecShutdownNode() if appropriate.

Call ExecShutdownNode() after ExecutePlan()'s loop, rather than at each
break.  We had forgotten to do that in one case.  The omission caused
intermittent "temporary file leak" warnings from multi-batch parallel
hash joins with a LIMIT clause.

Back-patch to 11.  Though the problem exists in theory in earlier
parallel query releases, nothing really depended on it.

Author: Kyotaro Horiguchi
Reviewed-by: Thomas Munro, Amit Kapila
Discussion: https://postgr.es/m/20191111.212418.2222262873417235945.horikyota.ntt%40gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bc049d0d460aead528ace909a3477bc701ab2e9a

Modified Files
--------------
src/backend/executor/execMain.c | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Always call ExecShutdownNode() if appropriate.
Следующее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Skip system attributes when applying mvdistinct stats