Re: initdb failure

From: Joseph Conway <mail(at)joeconway(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pmandal(at)cisco(dot)com, pgsql-admin(at)postgresql(dot)org
Subject: Re: initdb failure
Date: 2010-04-11 23:09:23
Message-ID: 4BC256A3.5060205@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Pankaj Mandal (pmandal) 2010-04-12 04:57:55 Re: initdb failure
Previous Message Jan-Peter Seifert 2010-04-11 22:17:33 Re: initdb failure