pgsql: Match the buffer usage tracking for leader and worker backends.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Match the buffer usage tracking for leader and worker backends.
Дата
Msg-id E1flSRO-0006ul-DP@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Match the buffer usage tracking for leader and worker backends.

In the leader backend, we don't track the buffer usage for ExecutorStart
phase whereas in worker backend we track it for ExecutorStart phase as
well.  This leads to different value for buffer usage stats for the
parallel and non-parallel query.  Change the code so that worker backend
also starts tracking buffer usage after ExecutorStart.

Author: Amit Kapila and Robert Haas
Reviewed-by: Robert Haas and Andres Freund
Backpatch-through: 9.6 where this code was introduced
Discussion:https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3f02b5150ad9c97eec7238741411d8970be0eb67

Modified Files
--------------
src/backend/executor/execParallel.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Add missing header include to pmsignal.h.
Следующее
От: Amit Kapila
Дата:
Сообщение: pgsql: Fix buffer usage stats for parallel nodes.