forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit69d7edb
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 parentb901961 commit69d7edb
3 files changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1764 | 1784 | | |
1765 | 1785 | | |
1766 | 1786 | | |
| |||
7381 | 7401 | | |
7382 | 7402 | | |
7383 | 7403 | | |
| 7404 | + | |
7384 | 7405 | | |
7385 | 7406 | | |
7386 | 7407 | | |
| |||
7390 | 7411 | | |
7391 | 7412 | | |
7392 | 7413 | | |
7393 | | - | |
| 7414 | + | |
7394 | 7415 | | |
7395 | 7416 | | |
7396 | 7417 | | |
| |||
7403 | 7424 | | |
7404 | 7425 | | |
7405 | 7426 | | |
| 7427 | + | |
7406 | 7428 | | |
7407 | 7429 | | |
7408 | 7430 | | |
| |||
7417 | 7439 | | |
7418 | 7440 | | |
7419 | 7441 | | |
| 7442 | + | |
| 7443 | + | |
7420 | 7444 | | |
7421 | 7445 | | |
7422 | | - | |
| 7446 | + | |
7423 | 7447 | | |
7424 | 7448 | | |
7425 | 7449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2737 | 2737 | | |
2738 | 2738 | | |
2739 | 2739 | | |
2740 | | - | |
| 2740 | + | |
2741 | 2741 | | |
2742 | | - | |
| 2742 | + | |
2743 | 2743 | | |
2744 | 2744 | | |
2745 | 2745 | | |
2746 | | - | |
| 2746 | + | |
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
| |||
0 commit comments
Comments
(0)