- Notifications
You must be signed in to change notification settings - Fork5
Commit51e61b0
committed
Ensure pg_ctl behaves sanely when data directory is not specified.
Commitaaa6e1d introduced multiple hazardsin the case where pg_ctl is executed with neither a -D switch nor anyPGDATA environment variable. It would dump core on machines which areunforgiving about printf("%s", NULL), or failing that possibly give arather unhelpful complaint about being unable to execute "postgres -C",rather than the logically prior complaint about not being told where thedata directory is.Edmund Horner's report suggests that there is another, Windows-specifichazard here, but I'm not the person to fix that; it would in any case onlybe significant when trying to use a config-only PGDATA pointer.1 parentbf0945e commit51e61b0
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1902 | 1902 |
| |
1903 | 1903 |
| |
1904 | 1904 |
| |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1905 | 1909 |
| |
1906 | 1910 |
| |
1907 | 1911 |
| |
| |||
2188 | 2192 |
| |
2189 | 2193 |
| |
2190 | 2194 |
| |
| 2195 | + | |
2191 | 2196 |
| |
2192 | 2197 |
| |
| 2198 | + | |
2193 | 2199 |
| |
2194 | 2200 |
| |
2195 | 2201 |
| |
|
0 commit comments
Comments
(0)