Win2000: CREATE DATABASE: could not initialize database director

From: "Castillo, Jose" <jose(dot)castillo(at)citigroup(dot)com>
To: <pgsql-cygwin(at)postgresql(dot)org>
Subject: Win2000: CREATE DATABASE: could not initialize database director
Date: 2003-09-10 19:11:48
Message-ID: 208F94638315824F89A9D8FC588BA4D21A5561@EXNJMB14.nam.nsroot.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Hi,
I am having a problem creating a database on postgresq-7.3.2. I was able to initialize the database but when I issue the command createdb mydb, I get the following message.

WARNING: database directory '/usr/share/postgresql/data1/base/16980'could not be removed
ERROR: CREATE DATABASE: could not initialize database directory; delete failed as well.

I visited FAQ a I found the solution pointed out for this problem. The process creating the database does not have rights to the directory. However, I am logged on to the workstation, and I'm the owner of the directory and I starts the postmaster by hand.

The only difference I can think of is that the person who had this problem seems to be the administrator of the box, I am not. Could this explain the failure? Or am I missing something pretty obvious?

Thanks for any suggestion
Jose Castillo
718-248-6674

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2003-09-10 20:49:08 Re: initdb failed
Previous Message Peter Eisentraut 2003-09-10 17:18:24 Re: [PATCHES] WIN32_CONSOLE usage