> I am using PostgreSQL 8.3 on Windows XP SP2.
>
> I am getting this strange error while initdb:
>
> Part of the error message i get,
>
> The database cluster will be initialized with locale English_United
> States.1252.
>
> The default database encoding has accordingly been set to WIN1252.
> The default text search configuration will be set to "english".
>
> fixing permissions on existing directory C:/postgres/data ... ok
> creating subdirectories ... initdb: could not create directory
> "C:/postgres": File exists
> initdb: removing contents of data directory "C:/postgres/data"
>
> I have a directory structure as :
> C:\
> ->Postgres
> -->bin
> -->lib
> -->share
> Now i get this error, when i tried to do initdb setting my PGDATA to
> C:\postgres\data which is an empty directory and i am running it (initdb)
> as administrator user.
Could you post the exact steps, settings and output?
That makes it a lot easier to determine the exact issue.
Also, have you checked the event log?
Regards,
Serge Fonville