Re: initdb mkdir_p() doesn't work
| От | Tom Lane |
|---|---|
| Тема | Re: initdb mkdir_p() doesn't work |
| Дата | |
| Msg-id | 29041.1069617725@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: initdb mkdir_p() doesn't work (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: initdb mkdir_p() doesn't work
|
| Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes:
> Peter Eisentraut wrote:
>> creating directory pg-install/var/data ... initdb: failed
> I will check it out. I know I spent quite some time making sure this
> worked, but I might have missed something obvious. I wonder if it is
> platform specific?
AFAICS mkdatadir() shouldn't consider subdir == NULL as a reason to
fail rather than trying mkdir_p. Indeed, if anything the opposite:
when subdir isn't NULL the immediately prior directory level should
exist already.
I concur with Peter's gripe that a perror() or two wouldn't hurt here.
regards, tom lane
В списке pgsql-hackers по дате отправления: