forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit82063ed
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 parente22819a commit82063ed
2 files changed
+23
-3
lines changedLines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1445 | 1445 |
| |
1446 | 1446 |
| |
1447 | 1447 |
| |
1448 |
| - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
1449 | 1451 |
| |
1450 | 1452 |
| |
1451 | 1453 |
| |
| |||
5215 | 5217 |
| |
5216 | 5218 |
| |
5217 | 5219 |
| |
5218 |
| - | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
| 5227 | + | |
5219 | 5228 |
| |
5220 | 5229 |
| |
5221 | 5230 |
| |
| |||
5442 | 5451 |
| |
5443 | 5452 |
| |
5444 | 5453 |
| |
5445 |
| - | |
| 5454 | + | |
| 5455 | + | |
5446 | 5456 |
| |
5447 | 5457 |
| |
5448 | 5458 |
| |
|
Lines changed: 10 additions & 0 deletions
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)