- Notifications
You must be signed in to change notification settings - Fork5
Commitf11e8be
committed
Make commit_delay much smarter.
Instead of letting every backend participating in a group commit waitindependently, have the first one that becomes ready to flush WAL waitfor the configured delay, and let all the others wait just long enoughfor that first process to complete its flush. This greatly increasesthe chances of being able to configure a commit_delay setting thatactually improves performance.As a side consequence of this change, commit_delay now affects all WALflushes, rather than just commits. There was some discussion onpgsql-hackers about whether to rename the GUC to, say, wal_flush_delay,but in the absence of consensus I am leaving it alone for now.Peter Geoghegan, with some changes, mostly to the documentation, by me.1 parentf83b599 commitf11e8be
File tree
4 files changed
+58
-59
lines changed- doc/src/sgml
- src/backend/access/transam
4 files changed
+58
-59
lines changedLines changed: 19 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1866 | 1866 |
| |
1867 | 1867 |
| |
1868 | 1868 |
| |
1869 |
| - | |
1870 |
| - | |
1871 | 1869 |
| |
1872 |
| - | |
1873 |
| - | |
1874 |
| - | |
1875 |
| - | |
1876 |
| - | |
1877 |
| - | |
1878 |
| - | |
1879 |
| - | |
1880 |
| - | |
1881 |
| - | |
1882 |
| - | |
1883 |
| - | |
1884 |
| - | |
1885 |
| - | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1886 | 1889 |
| |
1887 | 1890 |
| |
1888 | 1891 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 |
| - | |
380 |
| - | |
381 |
| - | |
| 379 | + | |
382 | 380 |
| |
383 | 381 |
| |
384 | 382 |
| |
|
Lines changed: 0 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 | 71 |
| |
75 | 72 |
| |
76 | 73 |
| |
| |||
1123 | 1120 |
| |
1124 | 1121 |
| |
1125 | 1122 |
| |
1126 |
| - | |
1127 |
| - | |
1128 |
| - | |
1129 |
| - | |
1130 |
| - | |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 |
| - | |
1135 |
| - | |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
1141 |
| - | |
1142 | 1123 |
| |
1143 | 1124 |
| |
1144 | 1125 |
| |
|
Lines changed: 38 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| 83 | + | |
| 84 | + | |
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
| |||
2098 | 2100 |
| |
2099 | 2101 |
| |
2100 | 2102 |
| |
2101 |
| - | |
| 2103 | + | |
| 2104 | + | |
2102 | 2105 |
| |
2103 |
| - | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2104 | 2124 |
| |
2105 |
| - | |
2106 |
| - | |
2107 |
| - | |
2108 |
| - | |
2109 |
| - | |
| 2125 | + | |
| 2126 | + | |
2110 | 2127 |
| |
2111 |
| - | |
2112 |
| - | |
2113 |
| - | |
2114 |
| - | |
2115 |
| - | |
2116 |
| - | |
2117 |
| - | |
2118 |
| - | |
2119 |
| - | |
2120 |
| - | |
2121 |
| - | |
| 2128 | + | |
| 2129 | + | |
2122 | 2130 |
| |
2123 | 2131 |
| |
2124 |
| - | |
2125 |
| - | |
| 2132 | + | |
| 2133 | + | |
2126 | 2134 |
| |
2127 |
| - | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2128 | 2138 |
| |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2129 | 2146 |
| |
2130 | 2147 |
| |
2131 | 2148 |
| |
|
0 commit comments
Comments
(0)