Re: [GENERAL] A change in the Debian install

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: [GENERAL] A change in the Debian install
Дата
Msg-id a9b73a3e-c13b-4ae7-8211-ed8dc67a3054@manitou-mail.org
обсуждение исходный текст
Ответ на Re: [GENERAL] A change in the Debian install  (rob stone <floriparob@gmail.com>)
Список pgsql-general
    rob stone wrote:

> You create a new cluster by running initdb:-
>
> initdb -D /path/to/my/new/cluster

No, if you want to use the infrastructure brought by the
debian packages for your cluster, it should be created with:
 pg_createcluster 9.5 nameofcluster

See https://wiki.debian.org/PostgreSql
or the manpages of pg_createcluster and pg_wrapper.

> So, if you want to have multiple clusters with each one using its own
> postgresql.conf, then you have to eliminate those files from the /etc
> path, or alter your start-up scripts to use the config_file parameter.
> Note that this also applies to the other two conf files.

When using the abovementioned commands you don't need or want
to do that, because /etc/postgresql/<version>/<cluster> is the
only place they're going to be in.


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom DalPozzo
Дата:
Сообщение: Re: [GENERAL] keeping WAL after dropping replication slots
Следующее
От: John Iliffe
Дата:
Сообщение: Re: [GENERAL] Unable to connect to Postgresql