- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf4290f2
committed
Fix assertion failure in parallel vacuum with minimal maintenance_work_mem setting.
bbf668d lowered the minimum value of maintenance_work_mem to64kB. However, in parallel vacuum cases, since the initial underlyingDSA size is 256kB, it attempts to perform a cycle of index vacuumingand table vacuuming with an empty TID store, resulting in an assertionfailure.This commit ensures that at least one page is processed before indexvacuuming and table vacuuming begins.Backpatch to 17, where the minimum maintenance_work_mem value waslowered.Reviewed-by: David Rowley <dgrowleyml@gmail.com>Discussion:https://postgr.es/m/CAD21AoCEAmbkkXSKbj4dB+5pJDRL4ZHxrCiLBgES_g_g8mVi1Q@mail.gmail.comBackpatch-through: 171 parent6d3ea48 commitf4290f2
File tree
3 files changed
+30
-2
lines changed- src
- backend/access/heap
- test/regress
- expected
- sql
3 files changed
+30
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
1266 |
| - | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1267 | 1269 |
| |
1268 |
| - | |
| 1270 | + | |
| 1271 | + | |
1269 | 1272 |
| |
1270 | 1273 |
| |
1271 | 1274 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 |
| |
152 | 156 |
| |
153 | 157 |
| |
| |||
167 | 171 |
| |
168 | 172 |
| |
169 | 173 |
| |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
170 | 181 |
| |
171 | 182 |
| |
172 | 183 |
| |
| |||
175 | 186 |
| |
176 | 187 |
| |
177 | 188 |
| |
| 189 | + | |
178 | 190 |
| |
179 | 191 |
| |
180 | 192 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 |
| |
117 | 121 |
| |
118 | 122 |
| |
| |||
130 | 134 |
| |
131 | 135 |
| |
132 | 136 |
| |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
133 | 145 |
| |
134 | 146 |
| |
135 | 147 |
| |
136 | 148 |
| |
137 | 149 |
| |
138 | 150 |
| |
139 | 151 |
| |
| 152 | + | |
140 | 153 |
| |
141 | 154 |
| |
142 | 155 |
| |
|
0 commit comments
Comments
(0)