pgsql: Fix buffer usage stats for nodes above Gather Merge.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Fix buffer usage stats for nodes above Gather Merge.
Дата
Msg-id E1jzCrp-0000PB-6T@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix buffer usage stats for nodes above Gather Merge.

Commit 85c9d347 addressed a similar problem for Gather and Gather
Merge nodes but forgot to account for nodes above parallel nodes.  This
still works for nodes above Gather node because we shut down the workers
for Gather node as soon as there are no more tuples.  We can do a similar
thing for Gather Merge as well but it seems better to account for stats
during nodes shutdown after completing the execution.

Reported-by: Stéphane Lorek, Jehan-Guillaume de Rorthais
Author: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Reviewed-by: Amit Kapila
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/20200718160206.584532a2@firost

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/603c18b7ee2e100f081bb756b54758b38c59f65f

Modified Files
--------------
src/backend/executor/execProcnode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Replace TS_execute's TS_EXEC_CALC_NOT flag with TS_EXEC_SKIP_NOT
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Mark built-in coercion functions as leakproof where possible.