forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit68a2a43
committed
Improve ereports for VACUUM's BUFFER_USAGE_LIMIT option
There's no need to check if opt->arg is NULL since defGetString() alreadydoes that and raises an ERROR if it is. Let's just remove that check.Also, combine the two remaining ERRORs into a single check. It seemsbetter to give an indication about what sort of values we're looking forrather than just to state that the value given isn't valid. MakeBUFFER_USAGE_LIMIT uppercase in this ERROR message too. It's alreadyupper case in one other error message, so make that consistent.Reported-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/20230411.102335.1643720544536884844.horikyota.ntt@gmail.com1 parentd866f03 commit68a2a43
File tree
2 files changed
+11
-28
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+11
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 198 | | |
207 | 199 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 200 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 201 | + | |
| 202 | + | |
222 | 203 | | |
223 | | - | |
224 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
225 | 207 | | |
226 | 208 | | |
227 | 209 | | |
228 | | - | |
229 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
230 | 213 | | |
231 | 214 | | |
232 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments
Comments
(0)