forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1e08414
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 parent296128a commit1e08414
3 files changed
+32
-7
lines changedLines changed: 27 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1933 | 1933 |
| |
1934 | 1934 |
| |
1935 | 1935 |
| |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1936 | 1956 |
| |
1937 | 1957 |
| |
1938 | 1958 |
| |
| |||
7096 | 7116 |
| |
7097 | 7117 |
| |
7098 | 7118 |
| |
| 7119 | + | |
7099 | 7120 |
| |
7100 | 7121 |
| |
7101 | 7122 |
| |
| |||
7107 | 7128 |
| |
7108 | 7129 |
| |
7109 | 7130 |
| |
7110 |
| - | |
| 7131 | + | |
7111 | 7132 |
| |
7112 | 7133 |
| |
7113 | 7134 |
| |
7114 |
| - | |
| 7135 | + | |
7115 | 7136 |
| |
7116 | 7137 |
| |
7117 | 7138 |
| |
| |||
7123 | 7144 |
| |
7124 | 7145 |
| |
7125 | 7146 |
| |
| 7147 | + | |
7126 | 7148 |
| |
7127 | 7149 |
| |
7128 | 7150 |
| |
| |||
7137 | 7159 |
| |
7138 | 7160 |
| |
7139 | 7161 |
| |
| 7162 | + | |
| 7163 | + | |
7140 | 7164 |
| |
7141 | 7165 |
| |
7142 | 7166 |
| |
7143 |
| - | |
| 7167 | + | |
7144 | 7168 |
| |
7145 | 7169 |
| |
7146 | 7170 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
| 422 | + | |
422 | 423 |
| |
423 | 424 |
| |
424 | 425 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3136 | 3136 |
| |
3137 | 3137 |
| |
3138 | 3138 |
| |
3139 |
| - | |
| 3139 | + | |
3140 | 3140 |
| |
3141 |
| - | |
| 3141 | + | |
3142 | 3142 |
| |
3143 | 3143 |
| |
3144 | 3144 |
| |
3145 |
| - | |
| 3145 | + | |
3146 | 3146 |
| |
3147 | 3147 |
| |
3148 | 3148 |
| |
|
0 commit comments
Comments
(0)