pgsql: Report sort phase progress in parallel btree build

2021-06-11 Thread Alvaro Herrera
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 bu

pgsql: Report sort phase progress in parallel btree build

2021-06-11 Thread Alvaro Herrera
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 bu

pgsql: Report sort phase progress in parallel btree build

2021-06-11 Thread Alvaro Herrera
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 bu