- Notifications
You must be signed in to change notification settings - Fork28
Commit0c0151a
committed
Initialize reltuples = 1000, relpages = 10 in a newly created
relation, rather than zeroes. This prevents the optimizer from makingfoolish choices (ie, using nested-loop plans) on never-yet-vacuumed tables.This is a hack, of course. Keeping accurate track of these statisticswould be a cleaner solution, but it's far from clear that it'd be worththe cost of doing so. In any case we're not going to do that for 6.5.In the meantime, this quick hack provides a useful performance improvementin the regression tests and in many real-world scenarios.1 parentdbce02f commit0c0151a
1 file changed
+24
-2
lines changedLines changed: 24 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
664 |
| - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
665 | 687 |
| |
666 | 688 |
| |
667 | 689 |
| |
|
0 commit comments
Comments
(0)