- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2c0ed86

Richard Guo
Add explicit initialization for all PlannerGlobal fields
When creating a new PlannerGlobal node in standard_planner(), mostfields are explicitly initialized, but a few are not. This doesn'tcause any functional issues, as makeNode() zeroes all fields bydefault. However, the inconsistency is undesirable from a clarity andmaintenance perspective.This patch explicitly initializes the remaining fields to improveconsistency and readability.Author: Richard Guo <guofenglinux@gmail.com>Reviewed-by: David Rowley <dgrowleyml@gmail.com>Discussion:https://postgr.es/m/CAMbWs4-TgQHNOiouqGcuHoBqbJjWyx4UxGKxUY3FrF4trGbcPA@mail.gmail.com1 parent6e289f2 commit2c0ed86
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
| 329 | + | |
| 330 | + | |
329 | 331 |
| |
330 | 332 |
| |
331 | 333 |
| |
| 334 | + | |
332 | 335 |
| |
| 336 | + | |
333 | 337 |
| |
334 | 338 |
| |
335 | 339 |
| |
| |||
338 | 342 |
| |
339 | 343 |
| |
340 | 344 |
| |
| 345 | + | |
341 | 346 |
| |
342 | 347 |
| |
343 | 348 |
| |
|
0 commit comments
Comments
(0)