Re: createdb -- alternate locations

From: Charles Tassell <ctassell(at)isn(dot)net>
To: "J(dot)R(dot)" <jrbelding(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: createdb -- alternate locations
Date: 2000-05-26 02:51:37
Message-ID: 4.2.0.58.20000525235108.00b50e70@mailer.isn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try createdb -D $PGDATA2 testdb

At 11:26 PM 5/25/00, J.R. wrote:
> Hello:
>
>Novice, just installed PGSQL 7.0 on Redhat 6.1.
>
>Everything went smoothly with initial installation and db setup.
>However, I've run into some problems subsequently.
>
>To keep it simple, here is a specific problem. Attempting to create a
>database in an alternate location, I went through the following steps as
>the superuser (postgres):
>
>mkdir /home/postgres/testdata
>export PGDATA2=/home/postgres/testdata
>initlocation PGDATA2
>createdb testdb -D 'PGDATA2'
>
>the last command failed with this error:
>"The database path 'PGDATA2' in invalid. This may be due to a character
>that is not allowed or because the chosen path isn't permitted for
>databases"
>
>I also tried createdb -D 'PGDATA2' testdb, same result.
>
>
>Any ideas what I'm doing wrong?
>
>Thanks,
>J.R. Belding
>jrbelding(at)yahoo(dot)com
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-05-26 03:09:02 Re: createdb -- alternate locations
Previous Message J.R. 2000-05-26 02:26:46 createdb -- alternate locations