Re: Changing default ../data/ directory
Rich Shepard <[email protected]> Sat, 4 Jan 2020 08:26:06 -0800 (PST)
| Newsgroups | gmane.comp.db.postgresql.general |
|---|---|
| Message-ID | <[email protected]> |
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