Re: Changing default ../data/ directory

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2020-01-04 16:27:25 Re: Changing default ../data/ directory
Previous Message Adrian Klaver 2020-01-04 16:18:03 Re: When should parameters be passed as text v. binary?