Re: Changing default ../data/ directory

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Changing default ../data/ directory
Date: 2020-01-04 18:05:53
Message-ID: alpine.LNX.2.20.2001041003540.30638@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 4 Jan 2020, Jeff Janes wrote:

> PGDATA should work fine if you always start the server directly. But if
> you sudo or su to another user, they likely won't inherit your environment
> variables. And if you use some kind of start-up script, they will likely
> override it. How do you start and stop PostgreSQL?

Jeff,

Slackware's /etc/rc.d/rc.postgresql start command. I can modify that script
to change the data directory path.

Thanks,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2020-01-04 18:08:58 Re: Changing default ../data/ directory
Previous Message George Neuner 2020-01-04 17:38:23 Re: Changing default ../data/ directory