forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit47f99a4
committed
reindexdb: Add the index-level REINDEX with multiple jobs
Straight-forward index-level REINDEX is not supported with multiple jobs aswe cannot control the concurrent processing of multiple indexes depending onthe same relation. Instead, we dedicate the whole table to certain reindexjob. Thus, if indexes in the lists belong to different tables, that gives usa fair level of parallelism.This commit teaches get_parallel_object_list() to fetch table names forindexes in the case of index-level REINDEX. The same tables are groupedtogether in the output order, and the list of indexes is also rebuilt tomatch that order. Later during processingof that list, we push indexesbelonging to the same table into the same job.Discussion:https://postgr.es/m/CACG%3DezZU_VwDi-1PN8RUSE6mcYG%2BYx1NH_rJO4%2BKe-mKqLp%3DNw%40mail.gmail.comAuthor: Maxim Orlov, Svetlana Derevyanko, Alexander KorotkovReviewed-by: Michael Paquier1 parent503c0ad commit47f99a4
File tree
3 files changed
+130
-27
lines changed- doc/src/sgml/ref
- src/bin/scripts
- t
3 files changed
+130
-27
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
183 |
| - | |
| 182 | + | |
184 | 183 |
| |
185 | 184 |
| |
186 | 185 |
| |
|
Lines changed: 124 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
| 209 | + | |
| 210 | + | |
222 | 211 |
| |
223 | 212 |
| |
224 | 213 |
| |
| |||
258 | 247 |
| |
259 | 248 |
| |
260 | 249 |
| |
261 |
| - | |
| 250 | + | |
262 | 251 |
| |
263 | 252 |
| |
264 | 253 |
| |
| |||
288 | 277 |
| |
289 | 278 |
| |
290 | 279 |
| |
| 280 | + | |
291 | 281 |
| |
292 | 282 |
| |
| 283 | + | |
293 | 284 |
| |
294 | 285 |
| |
295 | 286 |
| |
296 | 287 |
| |
| 288 | + | |
| 289 | + | |
297 | 290 |
| |
298 | 291 |
| |
299 | 292 |
| |
| |||
363 | 356 |
| |
364 | 357 |
| |
365 | 358 |
| |
366 |
| - | |
367 | 359 |
| |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
368 | 378 |
| |
369 | 379 |
| |
370 | 380 |
| |
| |||
404 | 414 |
| |
405 | 415 |
| |
406 | 416 |
| |
407 |
| - | |
| 417 | + | |
408 | 418 |
| |
409 | 419 |
| |
410 | 420 |
| |
411 | 421 |
| |
412 | 422 |
| |
413 | 423 |
| |
414 | 424 |
| |
415 |
| - | |
416 |
| - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
417 | 441 |
| |
418 |
| - | |
419 |
| - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
420 | 450 |
| |
421 | 451 |
| |
422 |
| - | |
423 | 452 |
| |
424 | 453 |
| |
425 | 454 |
| |
| |||
436 | 465 |
| |
437 | 466 |
| |
438 | 467 |
| |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
439 | 474 |
| |
440 | 475 |
| |
441 | 476 |
| |
| |||
647 | 682 |
| |
648 | 683 |
| |
649 | 684 |
| |
650 |
| - | |
651 | 685 |
| |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
652 | 740 |
| |
653 | 741 |
| |
654 | 742 |
| |
| |||
680 | 768 |
| |
681 | 769 |
| |
682 | 770 |
| |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
683 | 785 |
| |
684 | 786 |
| |
685 | 787 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
| 239 | + | |
239 | 240 |
| |
240 | 241 |
| |
241 | 242 |
| |
| 243 | + | |
242 | 244 |
| |
243 | 245 |
| |
244 | 246 |
| |
245 | 247 |
| |
246 | 248 |
| |
247 | 249 |
| |
248 | 250 |
| |
249 |
| - | |
250 |
| - | |
251 |
| - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
252 | 254 |
| |
253 | 255 |
| |
254 | 256 |
| |
|
0 commit comments
Comments
(0)