forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit69d670e
committed
Remove arbitrary MAXPGPATH limit on command lengths in pg_ctl.
Replace fixed-length command buffers with psprintf() calls. We didn'thave anything as convenient as psprintf() when this code was written,but now that we do, there's little reason for the limitation tostand. Removing it eliminates some corner cases where (for example)starting the postmaster with a whole lot of options fails.Most individual file names that pg_ctl deals with are still restrictedto MAXPGPATH, but we've seldom had complaints about that limitationso long as it only applies to one filename.Back-patch to all supported branches.Phil KrylovDiscussion:https://postgr.es/m/567e199c6b97ee19deee600311515b86@krylov.eu1 parent2cc018b commit69d670e
1 file changed
+22
-22
lines changedLines changed: 22 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
445 |
| - | |
| 445 | + | |
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| |||
487 | 487 |
| |
488 | 488 |
| |
489 | 489 |
| |
490 |
| - | |
491 |
| - | |
492 |
| - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
493 | 493 |
| |
494 |
| - | |
495 |
| - | |
| 494 | + | |
| 495 | + | |
496 | 496 |
| |
497 | 497 |
| |
498 | 498 |
| |
| |||
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 |
| - | |
557 |
| - | |
| 556 | + | |
| 557 | + | |
558 | 558 |
| |
559 | 559 |
| |
560 |
| - | |
561 |
| - | |
| 560 | + | |
| 561 | + | |
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
831 |
| - | |
| 831 | + | |
832 | 832 |
| |
833 | 833 |
| |
834 | 834 |
| |
| |||
840 | 840 |
| |
841 | 841 |
| |
842 | 842 |
| |
843 |
| - | |
844 |
| - | |
| 843 | + | |
| 844 | + | |
845 | 845 |
| |
846 |
| - | |
847 |
| - | |
| 846 | + | |
| 847 | + | |
848 | 848 |
| |
849 | 849 |
| |
850 | 850 |
| |
| |||
2175 | 2175 |
| |
2176 | 2176 |
| |
2177 | 2177 |
| |
2178 |
| - | |
2179 |
| - | |
2180 |
| - | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
2181 | 2181 |
| |
2182 | 2182 |
| |
2183 | 2183 |
| |
| |||
2207 | 2207 |
| |
2208 | 2208 |
| |
2209 | 2209 |
| |
2210 |
| - | |
2211 |
| - | |
2212 |
| - | |
2213 |
| - | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
2214 | 2214 |
| |
2215 | 2215 |
| |
2216 | 2216 |
| |
|
0 commit comments
Comments
(0)