- Notifications
You must be signed in to change notification settings - Fork5
Commita00c583
committed
Make initdb's suggested "pg_ctl start" command line more reliable.
The original coding here was not nearly careful enough about quotingspecial characters, and it didn't get corner cases right for constructingthe pg_ctl path either. Use join_path_components() and appendShellString()to do it honestly, so that the string will more likely work if blindlycopied-and-pasted.While at it, teach appendShellString() not to quote strings that clearlydon't need it, so that the output from initdb doesn't become uglier thanit was before in typical cases where quoting is not needed.Ryan Murphy, reviewed by Michael Paquier and myselfDiscussion: <CAHeEsBeAe1FeBypT3E8R1ZVZU0e8xv3A-7BHg6bEOi=jZny2Uw@mail.gmail.com>1 parent6471045 commita00c583
3 files changed
+46
-17
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 |
| |
22 | 25 |
| |
23 | 26 |
| |
|
Lines changed: 28 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
331 | 332 |
| |
332 | 333 |
| |
333 | 334 |
| |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
340 |
| - | |
341 |
| - | |
342 | 335 |
| |
343 | 336 |
| |
344 | 337 |
| |
| |||
3359 | 3352 |
| |
3360 | 3353 |
| |
3361 | 3354 |
| |
3362 |
| - | |
| 3355 | + | |
| 3356 | + | |
3363 | 3357 |
| |
3364 | 3358 |
| |
3365 | 3359 |
| |
| |||
3587 | 3581 |
| |
3588 | 3582 |
| |
3589 | 3583 |
| |
3590 |
| - | |
3591 |
| - | |
3592 |
| - | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
3593 | 3605 |
| |
3594 | 3606 |
| |
3595 |
| - | |
3596 |
| - | |
3597 |
| - | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
3598 | 3611 |
| |
3599 | 3612 |
| |
3600 | 3613 |
|
Lines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 |
| |
433 | 436 |
| |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
434 | 448 |
| |
435 | 449 |
| |
436 | 450 |
| |
| |||
450 | 464 |
| |
451 | 465 |
| |
452 | 466 |
| |
453 |
| - | |
454 | 467 |
| |
455 | 468 |
| |
456 | 469 |
| |
|
0 commit comments
Comments
(0)