pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix buffer usage stats for nodes above Gather Merge. 5+ messages / 1 participants [nested] [flat]
* pgsql: Fix buffer usage stats for nodes above Gather Merge. @ 2020-07-25 05:37 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Amit Kapila @ 2020-07-25 05:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2a2494229a709b880a6db82d8b267017fccf671f Modified Files -------------- src/backend/executor/execProcnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix buffer usage stats for nodes above Gather Merge. @ 2020-07-25 05:37 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Amit Kapila @ 2020-07-25 05:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b15367ae39402eb4eb8736f9c38c607995c82bb2 Modified Files -------------- src/backend/executor/execProcnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix buffer usage stats for nodes above Gather Merge. @ 2020-07-25 05:37 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Amit Kapila @ 2020-07-25 05:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bdaa84e38932de43fca89b20a5078bf92ea356e4 Modified Files -------------- src/backend/executor/execProcnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix buffer usage stats for nodes above Gather Merge. @ 2020-07-25 05:37 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Amit Kapila @ 2020-07-25 05:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f963b5bc028df73ffcc5a391c6ddd998921c3fad Modified Files -------------- src/backend/executor/execProcnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix buffer usage stats for nodes above Gather Merge. @ 2020-07-25 05:37 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Amit Kapila @ 2020-07-25 05:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2020-07-25 05:37 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-07-25 05:37 pgsql: Fix buffer usage stats for nodes above Gather Merge. Amit Kapila <akapila@postgresql.org> 2020-07-25 05:37 pgsql: Fix buffer usage stats for nodes above Gather Merge. Amit Kapila <akapila@postgresql.org> 2020-07-25 05:37 pgsql: Fix buffer usage stats for nodes above Gather Merge. Amit Kapila <akapila@postgresql.org> 2020-07-25 05:37 pgsql: Fix buffer usage stats for nodes above Gather Merge. Amit Kapila <akapila@postgresql.org> 2020-07-25 05:37 pgsql: Fix buffer usage stats for nodes above Gather Merge. 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