- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd9c7911
Use streaming read I/O in autoprewarm
Make a read stream for each valid fork of each valid relationrepresented in the autoprewarm dump file and prewarm those blocksthrough the read stream API instead of by directly invokingReadBuffer().Co-authored-by: Nazir Bilal Yavuz <byavuz81@gmail.com>Co-authored-by: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Andrey M. Borodin <x4mmm@yandex-team.ru> (earlier versions)Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> (earlier versions)Reviewed-by: Matheus Alcantara <mths.dev@pm.me> (earlier versions)Discussion:https://postgr.es/m/flat/CAN55FZ3n8Gd%2BhajbL%3D5UkGzu_aHGRqnn%2BxktXq2fuds%3D1AOR6Q%40mail.gmail.com1 parent6acab8b commitd9c7911
File tree
2 files changed
+104
-23
lines changed- contrib/pg_prewarm
- src/tools/pgindent
2 files changed
+104
-23
lines changedLines changed: 103 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
78 | 101 |
| |
79 | 102 |
| |
80 | 103 |
| |
| |||
422 | 445 |
| |
423 | 446 |
| |
424 | 447 |
| |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
425 | 496 |
| |
426 | 497 |
| |
427 | 498 |
| |
| |||
462 | 533 |
| |
463 | 534 |
| |
464 | 535 |
| |
465 |
| - | |
466 |
| - | |
467 | 536 |
| |
468 | 537 |
| |
469 | 538 |
| |
| |||
510 | 579 |
| |
511 | 580 |
| |
512 | 581 |
| |
| 582 | + | |
| 583 | + | |
513 | 584 |
| |
514 | 585 |
| |
515 | 586 |
| |
| |||
540 | 611 |
| |
541 | 612 |
| |
542 | 613 |
| |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
| 614 | + | |
549 | 615 |
| |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 |
| - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
565 | 632 |
| |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
566 | 640 |
| |
567 | 641 |
| |
568 | 642 |
| |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
569 | 649 |
| |
570 | 650 |
| |
571 | 651 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
|
0 commit comments
Comments
(0)