Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1D0991337B43 for ; Wed, 2 Feb 2011 02:10:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 79926-05 for ; Wed, 2 Feb 2011 06:10:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 6F89A1337999 for ; Wed, 2 Feb 2011 02:10:52 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p126Ap9D006062 for ; Wed, 2 Feb 2011 06:10:51 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p126Ap4n006061; Wed, 2 Feb 2011 06:10:51 GMT (envelope-from www) Date: Wed, 2 Feb 2011 06:10:51 GMT Message-Id: <201102020610.p126Ap4n006061@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5860: initdb failing with could not create directory "C:/Program Files ": File exists error From: "Yuvachitra" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201102/37 X-Sequence-Number: 29309 The following bug has been logged online: Bug reference: 5860 Logged by: Yuvachitra Email address: yuvachitra@gmail.com PostgreSQL version: 8.3/ 9.0 Operating system: Windows 2003 Description: initdb failing with could not create directory "C:/Program Files ": File exists error Details: Hi, On executing the initdb.exe by passing the data folder location, i get an error saying initdb: could not create directory "C:/Program Files": File exists. But as mentioned in http://archives.postgresql.org/pgsql-bugs/2008-06/msg00169.php, the workaround works fine. Please let us know if this workaround works in all scenarios. Also, it would be grateful if we get to know root cause of the issue. Thanks Yuva