forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5acc58c
committed
Don't reset changes_since_analyze after a selective-columns ANALYZE.
If we ANALYZE only selected columns of a table, we should not postponeauto-analyze because of that; other columns may well still need statsupdates. As committed, the counter is left alone if a column list isgiven, whether or not it includes all analyzable columns of the table.Per complaint from Tomasz Ostrowski.It's been like this a long time, so back-patch to all supported branches.Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl>1 parenta7aa61f commit5acc58c
3 files changed
+19
-7
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
605 | 605 |
| |
606 | 606 |
| |
607 | 607 |
| |
608 |
| - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
609 | 611 |
| |
610 | 612 |
| |
611 |
| - | |
| 613 | + | |
| 614 | + | |
612 | 615 |
| |
613 | 616 |
| |
614 | 617 |
| |
|
Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1346 | 1346 |
| |
1347 | 1347 |
| |
1348 | 1348 |
| |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1349 | 1352 |
| |
1350 | 1353 |
| |
1351 | 1354 |
| |
1352 | 1355 |
| |
1353 |
| - | |
| 1356 | + | |
| 1357 | + | |
1354 | 1358 |
| |
1355 | 1359 |
| |
1356 | 1360 |
| |
| |||
1387 | 1391 |
| |
1388 | 1392 |
| |
1389 | 1393 |
| |
| 1394 | + | |
1390 | 1395 |
| |
1391 | 1396 |
| |
1392 | 1397 |
| |
| |||
5110 | 5115 |
| |
5111 | 5116 |
| |
5112 | 5117 |
| |
5113 |
| - | |
5114 |
| - | |
| 5118 | + | |
| 5119 | + | |
| 5120 | + | |
5115 | 5121 |
| |
5116 |
| - | |
| 5122 | + | |
| 5123 | + | |
5117 | 5124 |
| |
5118 | 5125 |
| |
5119 | 5126 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
| 385 | + | |
385 | 386 |
| |
386 | 387 |
| |
387 | 388 |
| |
| |||
932 | 933 |
| |
933 | 934 |
| |
934 | 935 |
| |
935 |
| - | |
| 936 | + | |
| 937 | + | |
936 | 938 |
| |
937 | 939 |
| |
938 | 940 |
| |
|
0 commit comments
Comments
(0)