Re: initdb failure - Mailing list pgsql-admin

From Joseph Conway
Subject Re: initdb failure
Date
Msg-id 4BC256A3.5060205@joeconway.com
Whole thread Raw
In response to Re: initdb failure  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List 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 by date:

Previous
From: Jan-Peter Seifert
Date:
Subject: Re: initdb failure
Next
From: "Pankaj Mandal (pmandal)"
Date:
Subject: Re: initdb failure