Re: Question about databases in alternate locations... - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: Question about databases in alternate locations...
Date
Msg-id 39223072.63596770@alumni.caltech.edu
Whole thread Raw
In response to Question about databases in alternate locations...  (Richard J Kuhns <rjk@grauel.com>)
Responses Re: Question about databases in alternate locations...  (Richard J Kuhns <rjk@grauel.com>)
List pgsql-general
> Could anyone please tell me what I'm doing wrong?  I'm sure I'm just
> overlooking something, but what?

As Jeff pointed out, the environment variable "P" must be known to the
server backend to be used in the WITH LOCATION clause. Using it in the
preceeding initlocation invocation was correct. The utility tries it
as an environment variable, then as an absolute path, so "initlocation
P" and "initlocation $P" are both valid. You can make the environment
variable known to the backend by defining it in the postgres account's
.cshrc or .bashrc file, or by explicitly setting it before firing up
the backend.

                         - Thomas

--
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.0 psql, readline and history.
Next
From: "Nikolay Mijaylov"
Date:
Subject: simple question for users and db