Re: Changing default ../data/ directory - Mailing list pgsql-general

From Rich Shepard
Subject Re: Changing default ../data/ directory
Date
Msg-id alpine.LNX.2.20.2001040817520.30638@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Changing default ../data/ directory  (nikhil raj <nikhilraj474@gmail.com>)
List pgsql-general
On Sat, 4 Jan 2020, nikhil raj wrote:

> Step 1-: Stop the postgres services and change the path of the
> data directory in postgres.conf file.

The postgresql.conf.sample notes that the default value of data_directory is
taken from -D in the startup command or the PGDATA environment variable. I
suppose that I can define PGDATA in ~/.bash_profile as I'm the only user.

Thanks,

Rich



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: When should parameters be passed as text v. binary?
Next
From: Rich Shepard
Date:
Subject: Re: Changing default ../data/ directory