Re: initdb failure
| От | Joseph Conway |
|---|---|
| Тема | Re: initdb failure |
| Дата | |
| Msg-id | 4BC256A3.5060205@joeconway.com обсуждение исходный текст |
| Ответ на | Re: initdb failure ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Список | pgsql-admin |
Kevin Grittner wrote:
> "Pankaj Mandal (pmandal)" wrote:
>
>> creating template1 database in
>> C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/data/base/1
>> ...
>> initdb: could not execute command
>> ""C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/bin/
>> postgres.exe" --boot -x1 -F ": No error
>> initdb: removing contents of data directory
>> "C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/data"
>
> I don't recognize this. Anyone else? I am curious what can cause a
> failure with a description of "No error"
This is the only matching string in initdb.c
/*
* Open a subcommand with suitable error messaging
*/
static FILE *
popen_check(const char *command, const char *mode)
{
FILE *cmdfd;
fflush(stdout);
fflush(stderr);
errno = 0;
cmdfd = popen(command, mode);
if (cmdfd == NULL)
fprintf(stderr,
_("%s: could not execute command \"%s\": %s\n"),
progname, command, strerror(errno));
return cmdfd;
}
So I guess the question is, what could cause popen on Windows to return
NULL, but not set errno?
Joe
В списке pgsql-admin по дате отправления: