- Notifications
You must be signed in to change notification settings - Fork5
Commit11c794f
committed
Use guc.c's parse_int() instead of pg_atoi() to parse fillfactor in
default_reloptions(). The previous coding was really a bug because pg_atoi()will always throw elog on bad input data, whereas default_reloptions is notsupposed to complain about bad input unless its validate parameter is true.Right now you could only expose the problem by hand-modifyingpg_class.reloptions into an invalid state, so it doesn't seem worthback-patching; but we should get it right in HEAD because there might be othersituations in future. Noted while studying GIN fast-update patch.1 parent509303a commit11c794f
File tree
3 files changed
+20
-7
lines changed- src
- backend
- access/common
- utils/misc
- include/utils
3 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | | - | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
304 | 314 | | |
305 | 315 | | |
306 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
4115 | 4115 | | |
4116 | 4116 | | |
4117 | 4117 | | |
4118 | | - | |
| 4118 | + | |
4119 | 4119 | | |
4120 | 4120 | | |
4121 | 4121 | | |
| |||
4322 | 4322 | | |
4323 | 4323 | | |
4324 | 4324 | | |
4325 | | - | |
| 4325 | + | |
4326 | 4326 | | |
4327 | 4327 | | |
4328 | 4328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
0 commit comments
Comments
(0)