Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDHcZ-0001jF-Nk for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2013 16:55:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UDHcZ-00050o-3a for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2013 16:55:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDFp1-0008H8-Qu for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 14:59:59 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDFox-00067y-28 for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 14:59:59 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDFow-0006Ql-2a for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 14:59:54 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UDFov-0000gl-RO for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 14:59:53 +0000 Date: Wed, 06 Mar 2013 14:59:53 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7921: Problem while initializing db..initdb could not create directory.. To: pgsql-bugs@postgresql.org From: kovaral@gmail.com X-Pg-Spam-Score: -1.6 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7921 Logged by: Vinny Email address: kovaral@gmail.com PostgreSQL version: 9.2.1 Operating system: Windows 7 Description:=20=20=20=20=20=20=20=20 When I tried to install a product that uses postgres as a database server,installation fails during the initialization of postgres db.. Error Trace: C:\xyz\bin>call initPgsql.bat=20 "C:\xyz\bin\\..\pgsql" "Creating data directory" "Grant privileges for data directory using icacls.exe ..." processed file: C:\xyz\bin\\..\pgsql\data Successfully processed 1 files; Failed processing 0 files processed file: C:\xyz\bin\\..\pgsql\data Successfully processed 1 files; Failed processing 0 files processed file: C:\xyz\bin\\..\pgsql\data Successfully processed 1 files; Failed processing 0 files "Running Postgres initdb..." The files belonging to this database system will be owned by user "xxx". This user must also own the server process. The database cluster will be initialized with locale "C". The default text search configuration will be set to "english". fixing permissions on existing directory C:/xyz/bin/../pgsql/data ... ok Creating subdirectories ... initdb: could not create directory "C:/xyz": File Exists initdb: removing contents of data directory "C:/xyz/bin/../pgsql/data" Problem while initializing DB.=20 The actual db dome folder is 'C:/xyz/pgsql'..My question is why pgsql tries to create directory outside pgsql folder that is already created?? =20 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs