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

From George Neuner
Subject Re: Changing default ../data/ directory
Date
Msg-id moi11fh396i9hqhnr8q645hgro9aiofdbg@4ax.com
Whole thread Raw
In response to Changing default ../data/ directory  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
On Sat, 4 Jan 2020 07:20:44 -0800 (PST), Rich Shepard
<rshepard@appl-ecosys.com> wrote:

>As this is all new to me I want to learn how to:
>
>1) Define a postgresl.conf and learn where it should be located.
>
>2) Move all current databased in /var/lib/pgsql/11/data to /data/pgsql/11.
>
>3) Create all new databases in /data/pgsql/11 by default.
>
>I'm sure it's in the manual yet I'm unsure just where to start reading.
>
>Rich

Since the new drive is local you can just move the data directory to
its new location and link to it from the default (/var) location.  No
configuration changes needed.

Won't help you learn necessarily, but solves the problem.

YMMV,
George




pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Changing default ../data/ directory
Next
From: Rich Shepard
Date:
Subject: Re: Changing default ../data/ directory