diff options
author | Amit Kapila <akapila@postgresql.org> | 2020-04-09 09:49:30 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2020-04-09 09:49:30 +0530 |
commit | 5c71362174eb56676f8b91c73ec066dd5513fd4b (patch) | |
tree | b45d04f115fc16adaae2eb64876824df1aaff760 /src/backend/parser/parse_utilcmd.c | |
parent | 58ad961f19f7eca26e6d60eb07adcffeafd0082e (diff) | |
download | postgresql-5c71362174eb56676f8b91c73ec066dd5513fd4b.tar.gz postgresql-5c71362174eb56676f8b91c73ec066dd5513fd4b.zip |
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
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions