forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2dc16ef
committed
Attempt to fix unstable regression tests
b07642d added code to trigger autovacuums based on the number ofinserts into a table. This seems to have caused some regression testresults to destabilize. I suspect this is due to autovacuum triggering avacuum sometime after the test's ANALYZE run and perhaps reltuples isending up being set to a slightly different value as a result.Attempt to resolve this by running a VACUUM ANALYZE on the affected tableinstead of just ANALYZE. pg_class.reltuples will still get set to whateverANALYZE chooses but we should no longer get the proceeding autovacuumoverriding that.The overhead this adds to each test's runtime seems small enough not toworry about. I measure 3-4% on stats_ext and can't measure any change inpartition_aggregate.I'm unable to recreate the issue locally, so this is a bit of a blindfix.Discussion:https://postgr.es/m/CAApHDvpWmpqYrKwwDQyeDq8dAyK7GMNaxDhrG69CkSuXoEg%2BVg%40mail.gmail.com1 parenta7b9d24 commit2dc16ef
File tree
4 files changed
+14
-15
lines changed- src/test/regress
- expected
- sql
4 files changed
+14
-15
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
937 |
| - | |
| 937 | + | |
938 | 938 |
| |
939 | 939 |
| |
940 | 940 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
845 |
| - | |
| 845 | + | |
846 | 846 |
| |
847 | 847 |
| |
848 | 848 |
| |
| |||
875 | 875 |
| |
876 | 876 |
| |
877 | 877 |
| |
878 |
| - | |
| 878 | + | |
879 | 879 |
| |
880 | 880 |
| |
881 | 881 |
| |
| |||
1175 | 1175 |
| |
1176 | 1176 |
| |
1177 | 1177 |
| |
1178 |
| - | |
| 1178 | + | |
1179 | 1179 |
| |
1180 | 1180 |
| |
1181 | 1181 |
| |
| |||
1192 | 1192 |
| |
1193 | 1193 |
| |
1194 | 1194 |
| |
1195 |
| - | |
| 1195 | + | |
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
| |||
1259 | 1259 |
| |
1260 | 1260 |
| |
1261 | 1261 |
| |
1262 |
| - | |
| 1262 | + | |
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
| |||
1280 | 1280 |
| |
1281 | 1281 |
| |
1282 | 1282 |
| |
1283 |
| - | |
| 1283 | + | |
1284 | 1284 |
| |
1285 | 1285 |
| |
1286 | 1286 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
216 |
| - | |
| 216 | + | |
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
|
Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 |
| - | |
| 457 | + | |
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
| |||
476 | 476 |
| |
477 | 477 |
| |
478 | 478 |
| |
479 |
| - | |
| 479 | + | |
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
| |||
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
592 |
| - | |
| 592 | + | |
593 | 593 |
| |
594 | 594 |
| |
595 | 595 |
| |
| |||
605 | 605 |
| |
606 | 606 |
| |
607 | 607 |
| |
608 |
| - | |
| 608 | + | |
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
| |||
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
638 |
| - | |
639 |
| - | |
| 638 | + | |
640 | 639 |
| |
641 | 640 |
| |
642 | 641 |
| |
| |||
655 | 654 |
| |
656 | 655 |
| |
657 | 656 |
| |
658 |
| - | |
| 657 | + | |
659 | 658 |
| |
660 | 659 |
| |
661 | 660 |
| |
|
0 commit comments
Comments
(0)