forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb2c9936
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 parenta78b0b3 commitb2c9936
3 files changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
2032 | 2052 | | |
2033 | 2053 | | |
2034 | 2054 | | |
| |||
7269 | 7289 | | |
7270 | 7290 | | |
7271 | 7291 | | |
| 7292 | + | |
7272 | 7293 | | |
7273 | 7294 | | |
7274 | 7295 | | |
| |||
7280 | 7301 | | |
7281 | 7302 | | |
7282 | 7303 | | |
7283 | | - | |
| 7304 | + | |
7284 | 7305 | | |
7285 | 7306 | | |
7286 | 7307 | | |
7287 | | - | |
| 7308 | + | |
7288 | 7309 | | |
7289 | 7310 | | |
7290 | 7311 | | |
| |||
7296 | 7317 | | |
7297 | 7318 | | |
7298 | 7319 | | |
| 7320 | + | |
7299 | 7321 | | |
7300 | 7322 | | |
7301 | 7323 | | |
| |||
7310 | 7332 | | |
7311 | 7333 | | |
7312 | 7334 | | |
| 7335 | + | |
| 7336 | + | |
7313 | 7337 | | |
7314 | 7338 | | |
7315 | 7339 | | |
7316 | | - | |
| 7340 | + | |
7317 | 7341 | | |
7318 | 7342 | | |
7319 | 7343 | | |
| |||
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
3734 | | - | |
| 3734 | + | |
3735 | 3735 | | |
3736 | | - | |
| 3736 | + | |
3737 | 3737 | | |
3738 | 3738 | | |
3739 | 3739 | | |
3740 | 3740 | | |
3741 | 3741 | | |
| 3742 | + | |
3742 | 3743 | | |
3743 | 3744 | | |
3744 | 3745 | | |
| |||
0 commit comments
Comments
(0)