forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7704a1a
committed
Be more wary about NULL values for GUC string variables.
get_explain_guc_options() crashed if a string GUC marked GUC_EXPLAINhas a NULL boot_val. Nosing around found a couple of other placesthat seemed insufficiently cautious about NULL string values, althoughthose are likely unreachable in practice. Add some commentarydefining the expectations for NULL values of string variables,in hopes of forestalling future additions of more such bugs.Xing Guo, Aleksander Alekseev, Tom LaneDiscussion:https://postgr.es/m/CACpMh+AyDx5YUpPaAgzVwC1d8zfOL4JoD-uyFDnNSa1z0EsDQQ@mail.gmail.com1 parent4b14e18 commit7704a1a
2 files changed
+23
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1473 | 1473 |
| |
1474 | 1474 |
| |
1475 | 1475 |
| |
1476 |
| - | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1477 | 1479 |
| |
1478 | 1480 |
| |
1479 | 1481 |
| |
| |||
5255 | 5257 |
| |
5256 | 5258 |
| |
5257 | 5259 |
| |
5258 |
| - | |
| 5260 | + | |
| 5261 | + | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
5259 | 5268 |
| |
5260 | 5269 |
| |
5261 | 5270 |
| |
| |||
5482 | 5491 |
| |
5483 | 5492 |
| |
5484 | 5493 |
| |
5485 |
| - | |
| 5494 | + | |
| 5495 | + | |
5486 | 5496 |
| |
5487 | 5497 |
| |
5488 | 5498 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
243 | 253 |
| |
244 | 254 |
| |
245 | 255 |
| |
|
0 commit comments
Comments
(0)