- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6e1cca5
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 parentf8b96c2 commit6e1cca5
2 files changed
+12
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9122 | 9122 |
| |
9123 | 9123 |
| |
9124 | 9124 |
| |
9125 |
| - | |
| 9125 | + | |
| 9126 | + | |
9126 | 9127 |
| |
9127 | 9128 |
| |
9128 | 9129 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
224 | 234 |
| |
225 | 235 |
| |
226 | 236 |
| |
|
0 commit comments
Comments
(0)