pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Brown <aaron@results-computing.net>
To: pgsql-admin@postgresql.org
Subject: createdb failing
Date: Wed, 25 Apr 2001 20:20:18 -0400 (EDT)
Message-ID: <988244418.3ae769c24e21a@webmail.results-computing.net> (raw)

I am trying to create a new database in an alternate location using
'initlocation' and 'createdb'.

The 'initlocation' utility appears to work, but 'createdb' always fails with the
following error:

"ERROR:  The database path 'PGDATA2' is invalid. This may be due to a character
that is not allowed or because the chosen path isn't permitted for databases
createdb: database creation failed"

The path I am using is '/postgres/SERVICES', which does not appear to have
invalid characters.

I put the absolute path of the new location in the PGDATA2 environment variable,
which is visible to the postmaster because the variable is set at system startup
in /etc/profile.local.

I have tried 'initlocation' and 'createdb' using absolute paths (no environment
variable) and I always get the same error. I have even tried "CREATE DATABASE
WITH LOCATION" directly inside of psql.

I noticed that 'initlocation' created the new directory and a 'base'
subdirectory. The 'base' directory is empty. Should the 'base' directory be
empty?

I am running PostgreSQL 7.0.2 on a SuSE 7.0 x86 box.

Any help is greatly appreciated.  Thank you.



view thread (2+ messages)  latest in thread

Message-ID: <988244418.3ae769c24e21a@webmail.results-computing.net>
Permalink:  ../988244418.3ae769c24e21a@webmail.results-computing.net/
Also on:    postgresql.org/message-id/988244418.3ae769c24e21a@webmail.results-computing.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: aaron@results-computing.net
  Subject: Re: createdb failing
  In-Reply-To: <988244418.3ae769c24e21a@webmail.results-computing.net>
  References: <988244418.3ae769c24e21a@webmail.results-computing.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox