forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5cc1cd5
committed
Report sort phase progress in parallel btree build
We were already reporting it, but only after the parallel workers werefinished, which is visibly much later than what happens in a serialbuild.With this change we report it when the leader starts its own sort phasewhen participating in the build (the normal case). Now this mighthappen a little later than when the workers start their sorting phases,but a) communicating the actual phase start from workers is likely to bea hassle, and b) the sort phase start is pretty fuzzy anyway, sincesorting per se is actually initiated by tuplesort.c internally earlierthan tuplesort_performsort() is called.Backpatch to pg12, where the progress reporting code for CREATE INDEXwent 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-e63644422adb1 parentab55d74 commit5cc1cd5
1 file changed
+10
-7
lines changedLines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
547 | 547 |
| |
548 | 548 |
| |
549 | 549 |
| |
| 550 | + | |
550 | 551 |
| |
551 | 552 |
| |
552 | 553 |
| |
| |||
1971 | 1972 |
| |
1972 | 1973 |
| |
1973 | 1974 |
| |
1974 |
| - | |
1975 |
| - | |
1976 |
| - | |
1977 |
| - | |
1978 |
| - | |
1979 |
| - | |
1980 |
| - | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
1981 | 1979 |
| |
1982 | 1980 |
| |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1983 | 1985 |
| |
| 1986 | + | |
1984 | 1987 |
| |
1985 | 1988 |
| |
1986 | 1989 |
| |
|
0 commit comments
Comments
(0)