From: Joseph Conway <mail@joeconway.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pmandal@cisco.com
Cc: pgsql-admin@postgresql.org
Subject: Re: initdb failure
Date: Sun, 11 Apr 2010 17:09:23 -0600
Message-ID: <4BC256A3.5060205@joeconway.com> (raw)
In-Reply-To: <4BC1C8EA02000025000306E8@gw.wicourts.gov>
References: <4BC1C8EA02000025000306E8@gw.wicourts.gov>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: mail@joeconway.com, Kevin.Grittner@wicourts.gov, pmandal@cisco.com
Subject: Re: initdb failure
In-Reply-To: <4BC256A3.5060205@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox