forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8d4e8b7
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 parentd2580bc commit8d4e8b7
3 files changed
+31
-6
lines changedLines changed: 27 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1815 | 1815 |
| |
1816 | 1816 |
| |
1817 | 1817 |
| |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
1818 | 1838 |
| |
1819 | 1839 |
| |
1820 | 1840 |
| |
| |||
7492 | 7512 |
| |
7493 | 7513 |
| |
7494 | 7514 |
| |
| 7515 | + | |
7495 | 7516 |
| |
7496 | 7517 |
| |
7497 | 7518 |
| |
| |||
7503 | 7524 |
| |
7504 | 7525 |
| |
7505 | 7526 |
| |
7506 |
| - | |
| 7527 | + | |
7507 | 7528 |
| |
7508 | 7529 |
| |
7509 | 7530 |
| |
7510 | 7531 |
| |
7511 |
| - | |
| 7532 | + | |
7512 | 7533 |
| |
7513 | 7534 |
| |
7514 | 7535 |
| |
| |||
7521 | 7542 |
| |
7522 | 7543 |
| |
7523 | 7544 |
| |
| 7545 | + | |
7524 | 7546 |
| |
7525 | 7547 |
| |
7526 | 7548 |
| |
| |||
7536 | 7558 |
| |
7537 | 7559 |
| |
7538 | 7560 |
| |
| 7561 | + | |
| 7562 | + | |
7539 | 7563 |
| |
7540 | 7564 |
| |
7541 | 7565 |
| |
7542 |
| - | |
| 7566 | + | |
7543 | 7567 |
| |
7544 | 7568 |
| |
7545 | 7569 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
| 390 | + | |
390 | 391 |
| |
391 | 392 |
| |
392 | 393 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2751 | 2751 |
| |
2752 | 2752 |
| |
2753 | 2753 |
| |
2754 |
| - | |
| 2754 | + | |
2755 | 2755 |
| |
2756 |
| - | |
| 2756 | + | |
2757 | 2757 |
| |
2758 | 2758 |
| |
2759 | 2759 |
| |
2760 |
| - | |
| 2760 | + | |
2761 | 2761 |
| |
2762 | 2762 |
| |
2763 | 2763 |
| |
|
0 commit comments
Comments
(0)