forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1021bd6
committed
Don't balance vacuum cost delay when per-table settings are in effect
When there are cost-delay-related storage options set for a table,trying to make that table participate in the autovacuum cost-limitbalancing algorithm produces undesirable results: instead of using theconfigured values, the global values are always used,as illustrated by Mark Kirkwood inhttp://www.postgresql.org/message-id/52FACF15.8020507@catalyst.net.nzSince the mechanism is already complicated, just disable it for thosecases rather than trying to make it cope. There are undesirableside-effects from this too, namely that the total I/O impact on thesystem will be higher whenever such tables are vacuumed. However, thisis seen as less harmful than slowing down vacuum, because that wouldcause bloat to accumulate. Anyway, in the new system it is possible totweak options to get the precise behavior one wants, whereas with theprevious system one was simply hosed.This has been broken forever, so backpatch to all supported branches.This might affect systems where cost_limit and cost_delay have been setfor individual tables.1 parent017b2e9 commit1021bd6
File tree
2 files changed
+26
-6
lines changed- doc/src/sgml
- src/backend/postmaster
2 files changed
+26
-6
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
792 | 792 |
| |
793 | 793 |
| |
794 | 794 |
| |
795 |
| - | |
| 795 | + | |
796 | 796 |
| |
797 |
| - | |
798 |
| - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
799 | 802 |
| |
800 | 803 |
| |
801 | 804 |
| |
|
Lines changed: 20 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
| 196 | + | |
196 | 197 |
| |
197 | 198 |
| |
198 | 199 |
| |
| |||
223 | 224 |
| |
224 | 225 |
| |
225 | 226 |
| |
| 227 | + | |
226 | 228 |
| |
227 | 229 |
| |
228 | 230 |
| |
| |||
1716 | 1718 |
| |
1717 | 1719 |
| |
1718 | 1720 |
| |
| 1721 | + | |
1719 | 1722 |
| |
1720 | 1723 |
| |
1721 | 1724 |
| |
| |||
1776 | 1779 |
| |
1777 | 1780 |
| |
1778 | 1781 |
| |
1779 |
| - | |
| 1782 | + | |
1780 | 1783 |
| |
1781 | 1784 |
| |
1782 | 1785 |
| |
1783 | 1786 |
| |
1784 | 1787 |
| |
1785 | 1788 |
| |
| 1789 | + | |
1786 | 1790 |
| |
1787 | 1791 |
| |
1788 | 1792 |
| |
1789 | 1793 |
| |
| 1794 | + | |
1790 | 1795 |
| |
1791 | 1796 |
| |
1792 | 1797 |
| |
| |||
1801 | 1806 |
| |
1802 | 1807 |
| |
1803 | 1808 |
| |
| 1809 | + | |
1804 | 1810 |
| |
1805 | 1811 |
| |
1806 | 1812 |
| |
| |||
1815 | 1821 |
| |
1816 | 1822 |
| |
1817 | 1823 |
| |
| 1824 | + | |
1818 | 1825 |
| |
1819 |
| - | |
| 1826 | + | |
| 1827 | + | |
1820 | 1828 |
| |
| 1829 | + | |
1821 | 1830 |
| |
1822 | 1831 |
| |
1823 |
| - | |
1824 | 1832 |
| |
1825 | 1833 |
| |
1826 | 1834 |
| |
| |||
2284 | 2292 |
| |
2285 | 2293 |
| |
2286 | 2294 |
| |
| 2295 | + | |
2287 | 2296 |
| |
2288 | 2297 |
| |
2289 | 2298 |
| |
| |||
2579 | 2588 |
| |
2580 | 2589 |
| |
2581 | 2590 |
| |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
2582 | 2599 |
| |
2583 | 2600 |
| |
2584 | 2601 |
| |
|
0 commit comments
Comments
(0)