Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2EEF56324A1 for ; Sun, 11 Apr 2010 20:09:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74036-04 for ; Sun, 11 Apr 2010 23:09:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from joeconway.com (wsip-72-214-29-243.sd.sd.cox.net [72.214.29.243]) by mail.postgresql.org (Postfix) with ESMTP id 9373263236C for ; Sun, 11 Apr 2010 20:09:33 -0300 (ADT) Received: from [198.202.202.21] (account jconway HELO jec-macbook-pro.local) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 9458922; Sun, 11 Apr 2010 16:09:31 -0700 Message-ID: <4BC256A3.5060205@joeconway.com> Date: Sun, 11 Apr 2010 17:09:23 -0600 From: Joseph Conway User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: Kevin Grittner CC: pmandal@cisco.com, pgsql-admin@postgresql.org Subject: Re: initdb failure References: <4BC1C8EA02000025000306E8@gw.wicourts.gov> In-Reply-To: <4BC1C8EA02000025000306E8@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.363 tagged_above=-10 required=5 tests=RDNS_DYNAMIC=0.363 X-Spam-Level: X-Archive-Number: 201004/129 X-Sequence-Number: 34223 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