Re: Database alternate locations

From: root(at)localhost(dot)localdomain (Jules Alberts)
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Database alternate locations
Date: 2001-12-27 09:25:47
Message-ID: 3c2ae91b$0$1718@heracles
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 21 Dec 2001 13:41:43 -0800, David Larsen
<david(at)coastaltie(dot)com> wrote:
>I am running PostgreSQL 7.0.3 on RedHat 7.1. I would like to create
>databases in /u1/psql/data, and can't get it to work. I defined
>PGDATA2=/u1/psql/data and exported it in my .bash_profile for
>postgres user. I even went so far as to add the varible and export
>it in my /etc/rc.d/init.d/postgresql startup script. I stopped
>postgresql and ran the command:
>
>% initlocation $PGDATA2
>
>That worked fine and the necessary directories are created. I then
>run:
>
>% createdb -D PGDATA2 mydb
>
>and get 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.
>
>I have not enabled absolute paths, however I tried an absolute path
>anyway and run:
>
>% createdb -D $PGDATA2 mydb
>
>I get basically the same error:
>
>ERROR: The database path '/u1/psql/data' 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
>
>I have read the documentation on using alternate database locations
>in detail, but to no avail. Can anyone help?
>
>

you may try using a path name with no numeric characters in it. that
would explain the errormessage "due to a character that is not
allowed"

HTH, HAND

--
Jules Alberts

Browse pgsql-admin by date

  From Date Subject
Next Message Heni Lolov 2001-12-28 10:57:12 indexes bug or feature
Previous Message Richard NAGY 2001-12-21 09:55:28 strange problem with plpgsql