alex yap wrote:
> Hi,
>
> recently i need to use pg in my project. everything going ok till
> when i want to createdb it appear this :
>
> Warning : could not remove database directory
> "/var/postgresql/data/base/17147" Detail: Failing system command was
> : rm -rf '/var/postgresql/data/base/17147' Error: could not
> initialize database directory; delete failed as well detail : failing
> system command was : cp -r '/var/postgresql/data/base/1'
> '/var/postgresql/data/base/17147'
This is the wrong list for support queries - in the future "general"
would be a good choice.
Things to check:
1. You are starting PG as the right user
2. Permissions are correct
3. The directory exists
4. Have you done anything with tablespaces?
-- Richard Huxton Archonet Ltd