Thread: about createdb err
$ 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
"楊 慧泉" <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