pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Report sort phase progress in parallel btree build 3+ messages / 1 participants [nested] [flat]
* pgsql: Report sort phase progress in parallel btree build @ 2021-06-11 23:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2021-06-11 23:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Report sort phase progress in parallel btree build We were already reporting it, but only after the parallel workers were finished, which is visibly much later than what happens in a serial build. With this change we report it when the leader starts its own sort phase when participating in the build (the normal case). Now this might happen a little later than when the workers start their sorting phases, but a) communicating the actual phase start from workers is likely to be a hassle, and b) the sort phase start is pretty fuzzy anyway, since sorting per se is actually initiated by tuplesort.c internally earlier than tuplesort_performsort() is called. Backpatch to pg12, where the progress reporting code for CREATE INDEX went in. Reported-by: Tomas Vondra <tomas.vondra@enterprisedb.com> Author: Matthias van de Meent <boekewurm+postgres@gmail.com> Reviewed-by: Greg Nancarrow <gregn4422@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/1128176d-1eee-55d4-37ca-e63644422adb Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5cc1cd502879d642da799e1fd12619d83d987369 Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Report sort phase progress in parallel btree build @ 2021-06-11 23:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2021-06-11 23:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Report sort phase progress in parallel btree build We were already reporting it, but only after the parallel workers were finished, which is visibly much later than what happens in a serial build. With this change we report it when the leader starts its own sort phase when participating in the build (the normal case). Now this might happen a little later than when the workers start their sorting phases, but a) communicating the actual phase start from workers is likely to be a hassle, and b) the sort phase start is pretty fuzzy anyway, since sorting per se is actually initiated by tuplesort.c internally earlier than tuplesort_performsort() is called. Backpatch to pg12, where the progress reporting code for CREATE INDEX went in. Reported-by: Tomas Vondra <tomas.vondra@enterprisedb.com> Author: Matthias van de Meent <boekewurm+postgres@gmail.com> Reviewed-by: Greg Nancarrow <gregn4422@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/1128176d-1eee-55d4-37ca-e63644422adb Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/065ce069ae4fe5f59251435ebfe13e14a2d5874c Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Report sort phase progress in parallel btree build @ 2021-06-11 23:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2021-06-11 23:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Report sort phase progress in parallel btree build We were already reporting it, but only after the parallel workers were finished, which is visibly much later than what happens in a serial build. With this change we report it when the leader starts its own sort phase when participating in the build (the normal case). Now this might happen a little later than when the workers start their sorting phases, but a) communicating the actual phase start from workers is likely to be a hassle, and b) the sort phase start is pretty fuzzy anyway, since sorting per se is actually initiated by tuplesort.c internally earlier than tuplesort_performsort() is called. Backpatch to pg12, where the progress reporting code for CREATE INDEX went in. Reported-by: Tomas Vondra <tomas.vondra@enterprisedb.com> Author: Matthias van de Meent <boekewurm+postgres@gmail.com> Reviewed-by: Greg Nancarrow <gregn4422@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/1128176d-1eee-55d4-37ca-e63644422adb Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c7efd975754b41bccabbb55902b6d79bd350515 Modified Files -------------- src/backend/access/nbtree/nbtsort.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-06-11 23:08 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-06-11 23:08 pgsql: Report sort phase progress in parallel btree build Alvaro Herrera <alvherre@alvh.no-ip.org> 2021-06-11 23:08 pgsql: Report sort phase progress in parallel btree build Alvaro Herrera <alvherre@alvh.no-ip.org> 2021-06-11 23:08 pgsql: Report sort phase progress in parallel btree build Alvaro Herrera <alvherre@alvh.no-ip.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