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