Re: Alternate database locations - Mailing list pgsql-general

From Rich Shepard
Subject Re: Alternate database locations
Date
Msg-id Pine.LNX.4.44.0202182015270.25429-100000@salmo.appl-ecosys.com
Whole thread Raw
In response to Alternate database locations  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Alternate database locations  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, 19 Feb 2002, Jokerman wrote:

> i think you should create the database using 'initdb /opt/paislay'.
> then you can add the PGDATA2 variable on your environment.

  I thought of this, too. I created a directory called
/opt/paisley/acctdata/, gave it permissions of 700, changed the owner.group
to postgres.postgres, then ran initdb specifying that directory. It worked
just fine.

  Next I changed the environment variable, PGDATA2, to
/opt/paisley/acctdata/ in postgres's and my ~/.bash_profile, restarted the
postmaster and got the same error message: createdb failed because the
postmaster doesn't understand PGDATA2.

  Now I'll try it again without quotes on the path.

Thanks,

Rich


pgsql-general by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Problem with unixODBC driver and lenth of sql statements
Next
From: Tom Lane
Date:
Subject: Re: PL/pgsql UPDATE status