Re: Changing default ../data/ directory

Поиск
Список
Период
Сортировка
От George Neuner
Тема Re: Changing default ../data/ directory
Дата
Msg-id moi11fh396i9hqhnr8q645hgro9aiofdbg@4ax.com
обсуждение исходный текст
Ответ на Changing default ../data/ directory  (Rich Shepard <rshepard@appl-ecosys.com>)
Список 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 по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Changing default ../data/ directory
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Changing default ../data/ directory