Re: createdb confusion - Mailing list pgsql-general

From Tom Lane
Subject Re: createdb confusion
Date
Msg-id 21167.997323527@sss.pgh.pa.us
Whole thread Raw
In response to Re: createdb confusion  (Mike Mascari <mascarm@mascari.com>)
List pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> How about:

> export PGDATA2=/opt/postgres/data
> initlocation PGDATA2
> createdb -D PGDATA2 mydb

Note also that the environment variable PGDATA2 must be defined in the
*postmaster*'s environment, not only your shell environment.  This is
a crude (and ugly) way of letting the DBA control which directories may
be used as alternate locations --- only what he's listed in the
postmaster's environment may be used.

            regards, tom lane

pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: Re: Re: Mirroring the database?
Next
From: "Yusron Hilmy"
Date:
Subject: getting result information of DECLARE CURSOR statement