pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Allow parallel create index to accumulate buffer usage stats. 3+ messages / 1 participants [nested] [flat]
* pgsql: Allow parallel create index to accumulate buffer usage stats. @ 2020-04-09 04:43 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2020-04-09 04:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Allow parallel create index to accumulate buffer usage stats. Currently, we don't account for buffer usage incurred by parallel workers for parallel create index. This commit allows each worker to record the buffer usage stats and leader backend to accumulate that stats at the end of the operation. This will allow pg_stat_statements to display correct buffer usage stats for (parallel) create index command. Reported-by: Julien Rouhaud Author: Sawada Masahiko Reviewed-by: Dilip Kumar, Julien Rouhaud and Amit Kapila Backpatch-through: 11, where this was introduced Discussion: https://postgr.es/m/20200328151721.GB12854@nol Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5c71362174eb56676f8b91c73ec066dd5513fd4b Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 34 +++++++++++++++++++++++++--------- src/backend/executor/instrument.c | 10 +++------- 2 files changed, 28 insertions(+), 16 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Allow parallel create index to accumulate buffer usage stats. @ 2020-04-09 04:43 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2020-04-09 04:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Allow parallel create index to accumulate buffer usage stats. Currently, we don't account for buffer usage incurred by parallel workers for parallel create index. This commit allows each worker to record the buffer usage stats and leader backend to accumulate that stats at the end of the operation. This will allow pg_stat_statements to display correct buffer usage stats for (parallel) create index command. Reported-by: Julien Rouhaud Author: Sawada Masahiko Reviewed-by: Dilip Kumar, Julien Rouhaud and Amit Kapila Backpatch-through: 11, where this was introduced Discussion: https://postgr.es/m/20200328151721.GB12854@nol Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/13823ad3b012cfaf986ee4dfbd60190ca07187f1 Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Allow parallel create index to accumulate buffer usage stats. @ 2020-04-09 04:43 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2020-04-09 04:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Allow parallel create index to accumulate buffer usage stats. Currently, we don't account for buffer usage incurred by parallel workers for parallel create index. This commit allows each worker to record the buffer usage stats and leader backend to accumulate that stats at the end of the operation. This will allow pg_stat_statements to display correct buffer usage stats for (parallel) create index command. Reported-by: Julien Rouhaud Author: Sawada Masahiko Reviewed-by: Dilip Kumar, Julien Rouhaud and Amit Kapila Backpatch-through: 11, where this was introduced Discussion: https://postgr.es/m/20200328151721.GB12854@nol Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f179e9f01b65dd880b204599187ffff29ecba91e Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-04-09 04:43 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-04-09 04:43 pgsql: Allow parallel create index to accumulate buffer usage stats. Amit Kapila <akapila@postgresql.org> 2020-04-09 04:43 pgsql: Allow parallel create index to accumulate buffer usage stats. Amit Kapila <akapila@postgresql.org> 2020-04-09 04:43 pgsql: Allow parallel create index to accumulate buffer usage stats. 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