- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd5f1b6a
committed
Further adjust guidance for running vacuumdb after pg_upgrade.
Since pg_upgrade does not transfer the cumulative statistics usedto trigger autovacuum and autoanalyze, the server may take muchlonger than expected to process them post-upgrade. Currently, werecommend analyzing only relations for which optimizer statisticswere not transferred by using the --analyze-in-stages and--missing-stats-only options. This commit appends anotherrecommendation to analyze all relations to update the relevantcumulative statistics by using the --analyze-only option. This issimilar to the recommendation for pg_stat_reset().Reported-by: Christoph Berg <myon@debian.org>Reviewed-by: Christoph Berg <myon@debian.org>Discussion:https://postgr.es/m/aAfxfKC82B9NvJDj%40msg.df7cb.de1 parentf60420c commitd5f1b6a
2 files changed
+13
-8
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
833 | 833 |
| |
834 | 834 |
| |
835 | 835 |
| |
836 |
| - | |
| 836 | + | |
837 | 837 |
| |
838 | 838 |
| |
839 | 839 |
| |
840 | 840 |
| |
841 | 841 |
| |
842 |
| - | |
843 |
| - | |
| 842 | + | |
844 | 843 |
| |
845 |
| - | |
846 |
| - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
847 | 849 |
| |
848 | 850 |
| |
849 | 851 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
817 |
| - | |
818 |
| - | |
819 |
| - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
820 | 823 |
| |
821 | 824 |
| |
822 | 825 |
| |
|
0 commit comments
Comments
(0)