Re: alternative DB locations - Mailing list pgsql-general

From Tom Lane
Subject Re: alternative DB locations
Date
Msg-id 17655.970583980@sss.pgh.pa.us
Whole thread Raw
In response to alternative DB locations  (Bob Parkinson <rwp@biome.ac.uk>)
List pgsql-general
Bob Parkinson <rwp@biome.ac.uk> writes:
omni.ac.uk> export PGDATA2=/public_searchable_0
omni.ac.uk> initlocation PGDATA2
...
omni.ac.uk> createdb 'testdb' -D 'PGDATA2'
> 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

The backend will not take 'PGDATA2' as a location unless that
environment variable exists in the *postmaster's* environment.
Creating it in the client's environment won't do (except for
initlocation, which is only a shell script).

Don't forget to modify your startup scripts so that PGDATA2
is established for the postmaster on future restarts, too.

            regards, tom lane

pgsql-general by date:

Previous
From: "Kendall Koning"
Date:
Subject: Index problem?
Next
From: Jeff Hoffmann
Date:
Subject: Re: alternative DB locations