Re: createdb failed - Mailing list pgsql-hackers

From Richard Huxton
Subject Re: createdb failed
Date
Msg-id 41AD877C.3060508@archonet.com
Whole thread Raw
In response to createdb failed  (alex yap <alexysh_2003@yahoo.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Error handling in plperl and pltcl
Next
From: Thomas Hallgren
Date:
Subject: Re: Error handling in plperl and pltcl