Re: Changing the data directory path before the initial configuration of PostgreSQL 10.7.1

2020-12-24 Thread Keith Christian
> The easiest way is moving /var/lib/pgsql/data under /xyz directory > (when the db is not running) and create a symlink in the original > location: > > chown postgres: /xyz > su - postgres > mv /var/lib/pgsql/data /xyz/10-data > ln -s /xyz/10-data /var/lib/pgsql/data > > Then you can use setup scr

Re: Changing the data directory path before the initial configuration of PostgreSQL 10.7.1

2020-12-24 Thread Devrim Gündüz
Hi, On Thu, 2020-12-24 at 06:35 -0700, Keith Christian wrote: > Using Postgres 10.7.1 on Fedora core 28.  Admittedly not the latest > but am helping a colleague with a production system who needs a > PostgreSQL instance on this machine. > > The default /var/lib/pgsql/data directory needs to go

Changing the data directory path before the initial configuration of PostgreSQL 10.7.1

2020-12-24 Thread Keith Christian
Hi Postgres friends, Using Postgres 10.7.1 on Fedora core 28. Admittedly not the latest but am helping a colleague with a production system who needs a PostgreSQL instance on this machine. The default /var/lib/pgsql/data directory needs to go on another partition with more space, let's call it /