forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf50b103
committed
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] backend/optimizer/geqo/geqo_erx.cI sent these changes in with a bunch of others. Some were folded in butothers, like these, were not. I am not sure why so I am resending thisto the developers list by itself for discussion.The readon why I suggest these changes is that the compiler can't tellthat minimum_count is initialized before it is used. The tests that Iadd in here will cause an immediate error if it doesn't. As the commentsbelow suggest, if it is 100% guaranteed that the variable will alwaysbe initialized then how this is so should be commented here. I don'tknow how much strain the actual test puts on the performance but if itisn't too much then maybe leave it in for absolute safety anyway.There are also a few returns just to stop warnings.1 parenta668b7a commitf50b103
1 file changed
+21
-10
lines changedLines changed: 21 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
281 |
| - | |
| 281 | + | |
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
| |||
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
307 | 313 |
| |
308 | 314 |
| |
309 | 315 |
| |
310 | 316 |
| |
311 |
| - | |
312 |
| - | |
313 |
| - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
314 | 323 |
| |
315 | 324 |
| |
316 | 325 |
| |
| |||
332 | 341 |
| |
333 | 342 |
| |
334 | 343 |
| |
| 344 | + | |
335 | 345 |
| |
336 | 346 |
| |
337 | 347 |
| |
| |||
420 | 430 |
| |
421 | 431 |
| |
422 | 432 |
| |
| 433 | + | |
423 | 434 |
| |
424 | 435 |
|
0 commit comments
Comments
(0)