- Notifications
You must be signed in to change notification settings - Fork28
Commit1943c00
committed
initdb -S should now have an explicit check that $PGDATA is valid.
The fsync code from the backend essentially assumes that somebody's alreadyvalidated PGDATA, at least to the extent of it being a readable directory.That's safe enough for initdb's normal code path too, but "initdb -S"doesn't have any other processing at all that touches the target directory.To have reasonable error-case behavior, add a pg_check_dir call.Per gripe from Peter E.1 parent57e1138 commit1943c00
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3564 | 3564 |
| |
3565 | 3565 |
| |
3566 | 3566 |
| |
3567 |
| - | |
| 3567 | + | |
3568 | 3568 |
| |
3569 | 3569 |
| |
3570 | 3570 |
| |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
3571 | 3580 |
| |
3572 | 3581 |
| |
3573 | 3582 |
| |
|
0 commit comments
Comments
(0)