pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Match the buffer usage tracking for leader and worker backends.
4+ messages / 1 participants
[nested] [flat]

* pgsql: Match the buffer usage tracking for leader and worker backends.
@ 2018-08-03 05:15 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-03 05:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

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

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Match the buffer usage tracking for leader and worker backends.
@ 2018-08-03 05:15 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-03 05:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Match the buffer usage tracking for leader and worker backends.
@ 2018-08-03 05:15 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-03 05:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Match the buffer usage tracking for leader and worker backends.
@ 2018-08-03 05:15 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-03 05:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7124c93fb54fdd3bcf98e29392fc66ddb81f5343

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-08-03 05:15 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-03 05:15 pgsql: Match the buffer usage tracking for leader and worker backends. Amit Kapila <akapila@postgresql.org>
2018-08-03 05:15 pgsql: Match the buffer usage tracking for leader and worker backends. Amit Kapila <akapila@postgresql.org>
2018-08-03 05:15 pgsql: Match the buffer usage tracking for leader and worker backends. Amit Kapila <akapila@postgresql.org>
2018-08-03 05:15 pgsql: Match the buffer usage tracking for leader and worker backends. Amit Kapila <akapila@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox