BUG #7921: Problem while initializing db..initdb could not create directory.. - Mailing list pgsql-bugs

From kovaral@gmail.com
Subject BUG #7921: Problem while initializing db..initdb could not create directory..
Date
Msg-id E1UDFov-0000gl-RO@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
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:        =


When I tried to install a product that uses postgres as a database
server,installation fails during the initialization of postgres db..

Error Trace:
<quote>
C:\xyz\bin>call initPgsql.bat =

"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. =

</quote>


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??



 =

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #7920: Sequence rename leave stale value for sequence_name
Next
From: "Shin-ichi MORITA"
Date:
Subject: Re: BUG #7914: pg_dump aborts occasionally