forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaa2e323
committed
In pg_dump, don't dump a stats object unless dumping underlying table.
If the underlying table isn't being dumped, it's useless to dumpan extended statistics object; it'll just cause errors at restore.We have always applied similar policies to, say, indexes.(When and if we get cross-table stats objects, it might be profitableto think a little harder about what to do with them. But for nowthere seems no point in considering a stats object as anything butan appendage of its table.)Rian McGuire and Tom Lane, per report from Rian McGuire.Back-patch to supported branches.Discussion:https://postgr.es/m/7075d3aa-3f05-44a5-b68f-47dc6a8a0550@buildkite.com1 parent020e4a1 commitaa2e323
3 files changed
+31
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1960 | 1980 | | |
1961 | 1981 | | |
1962 | 1982 | | |
| |||
7683 | 7703 | | |
7684 | 7704 | | |
7685 | 7705 | | |
| 7706 | + | |
7686 | 7707 | | |
7687 | 7708 | | |
7688 | 7709 | | |
| |||
7694 | 7715 | | |
7695 | 7716 | | |
7696 | 7717 | | |
7697 | | - | |
| 7718 | + | |
7698 | 7719 | | |
7699 | 7720 | | |
7700 | 7721 | | |
7701 | 7722 | | |
7702 | | - | |
| 7723 | + | |
7703 | 7724 | | |
7704 | 7725 | | |
7705 | 7726 | | |
| |||
7712 | 7733 | | |
7713 | 7734 | | |
7714 | 7735 | | |
| 7736 | + | |
7715 | 7737 | | |
7716 | 7738 | | |
7717 | 7739 | | |
| |||
7726 | 7748 | | |
7727 | 7749 | | |
7728 | 7750 | | |
| 7751 | + | |
| 7752 | + | |
7729 | 7753 | | |
7730 | 7754 | | |
7731 | 7755 | | |
7732 | | - | |
| 7756 | + | |
7733 | 7757 | | |
7734 | 7758 | | |
7735 | 7759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2855 | 2855 | | |
2856 | 2856 | | |
2857 | 2857 | | |
2858 | | - | |
| 2858 | + | |
2859 | 2859 | | |
2860 | | - | |
| 2860 | + | |
2861 | 2861 | | |
2862 | 2862 | | |
2863 | 2863 | | |
2864 | | - | |
| 2864 | + | |
2865 | 2865 | | |
2866 | 2866 | | |
2867 | 2867 | | |
| |||
0 commit comments
Comments
(0)