forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf71519e
committed
Refactor and generalize the ParallelSlot machinery.
Create a wrapper object, ParallelSlotArray, to encapsulate thenumber of slots and the slot array itself, plus some other relevantbits of information. This reduces the number of parameters we haveto pass around all over the place.Allow for a ParallelSlotArray to contain slots connected todifferent databases within a single cluster. The current clientsof this mechanism don't need this, but it is expected to be usedby future patches.Defer connecting to databases until we actually need the connectionfor something. This is a slight behavior change for vacuumdb andreindexdb. If you specify a number of jobs that is larger than thenumber of objects, the extra connections will now not be used.But, on the other hand, if you specify a number of jobs that isso large that it's going to fail, the failure would previously havehappened before any operations were actually started, and now itwon't.Mark Dilger, reviewed by me.Discussion:http://postgr.es/m/12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.comDiscussion:http://postgr.es/m/BA592F2D-F928-46FF-9516-2B827F067F57@enterprisedb.com1 parent2c0cefc commitf71519e
File tree
5 files changed
+338
-161
lines changed- src
- bin/scripts
- fe_utils
- include/fe_utils
- tools/pgindent
5 files changed
+338
-161
lines changedLines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 |
| - | |
| 333 | + | |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 |
| - | |
| 344 | + | |
345 | 345 |
| |
346 | 346 |
| |
347 | 347 |
| |
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
464 |
| - | |
| 464 | + | |
| 465 | + | |
465 | 466 |
| |
466 | 467 |
| |
467 | 468 |
| |
| |||
475 | 476 |
| |
476 | 477 |
| |
477 | 478 |
| |
478 |
| - | |
| 479 | + | |
479 | 480 |
| |
480 | 481 |
| |
481 | 482 |
| |
| |||
489 | 490 |
| |
490 | 491 |
| |
491 | 492 |
| |
492 |
| - | |
| 493 | + | |
493 | 494 |
| |
494 | 495 |
| |
495 | 496 |
| |
| |||
499 | 500 |
| |
500 | 501 |
| |
501 | 502 |
| |
502 |
| - | |
503 |
| - | |
| 503 | + | |
| 504 | + | |
504 | 505 |
| |
505 | 506 |
| |
506 | 507 |
| |
|
Lines changed: 23 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| |||
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
| 411 | + | |
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| |||
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
424 |
| - | |
| 424 | + | |
425 | 425 |
| |
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
| 431 | + | |
431 | 432 |
| |
432 | 433 |
| |
433 | 434 |
| |
| |||
684 | 685 |
| |
685 | 686 |
| |
686 | 687 |
| |
687 |
| - | |
688 |
| - | |
689 |
| - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
690 | 691 |
| |
691 |
| - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
692 | 699 |
| |
693 | 700 |
| |
694 |
| - | |
695 |
| - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
696 | 704 |
| |
697 |
| - | |
698 |
| - | |
699 |
| - | |
700 |
| - | |
701 |
| - | |
702 |
| - | |
703 |
| - | |
704 |
| - | |
705 |
| - | |
706 |
| - | |
| 705 | + | |
| 706 | + | |
707 | 707 |
| |
708 | 708 |
| |
709 | 709 |
| |
| |||
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
722 |
| - | |
| 722 | + | |
723 | 723 |
| |
724 | 724 |
| |
725 | 725 |
| |
| |||
740 | 740 |
| |
741 | 741 |
| |
742 | 742 |
| |
743 |
| - | |
| 743 | + | |
744 | 744 |
| |
745 | 745 |
| |
746 | 746 |
| |
747 |
| - | |
748 |
| - | |
| 747 | + | |
| 748 | + | |
749 | 749 |
| |
750 | 750 |
| |
751 | 751 |
| |
|
0 commit comments
Comments
(0)