Thread: about createdb err

about createdb err

From
"楊 慧泉"
Date:
$ bash createdb test
NOTICE:  database directory '/usr/local/pgsql/data/base/18749' could not be
removed
ERROR:  CREATE DATABASE: could not initialize database directory; delete
failed as well
NOTICE:  database directory '/usr/local/pgsql/data/base/18749' could not be
removed
ERROR:  CREATE DATABASE: could not initialize database directory; delete
failed as well
createdb: database creation failed

Regards,

Yang





Re: about createdb err

From
Tom Lane
Date:
"楊 慧泉" <yanghq@gmo.jp> writes:
> $ bash createdb test
> NOTICE:  database directory '/usr/local/pgsql/data/base/18749' could not be
> removed
> ERROR:  CREATE DATABASE: could not initialize database directory; delete
> failed as well
> NOTICE:  database directory '/usr/local/pgsql/data/base/18749' could not be
> removed
> ERROR:  CREATE DATABASE: could not initialize database directory; delete
> failed as well
> createdb: database creation failed

Look in the postmaster log (its stderr output) to see why 'cp' or 'rm'
failed.
        regards, tom lane