Received: from mail.results-asp.net ([143.247.7.35]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3Q0GU343339 for ; Wed, 25 Apr 2001 20:16:30 -0400 (EDT) (envelope-from aaron@results-computing.net) Received: by mail.results-asp.net (Postfix, from userid 60001) id 6F8146B03; Wed, 25 Apr 2001 20:20:18 -0400 (EDT) To: pgsql-admin@postgresql.org Subject: createdb failing Message-ID: <988244418.3ae769c24e21a@webmail.results-computing.net> Date: Wed, 25 Apr 2001 20:20:18 -0400 (EDT) From: Aaron Brown MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.3 X-Originating-IP: 207.114.1.137 X-Archive-Number: 200104/136 X-Sequence-Number: 1273 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.