Re: [GENERAL] A change in the Debian install - Mailing list pgsql-general

From Daniel Verite
Subject Re: [GENERAL] A change in the Debian install
Date
Msg-id a9b73a3e-c13b-4ae7-8211-ed8dc67a3054@manitou-mail.org
Whole thread Raw
In response to Re: [GENERAL] A change in the Debian install  (rob stone <floriparob@gmail.com>)
List 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 by date:

Previous
From: Tom DalPozzo
Date:
Subject: Re: [GENERAL] keeping WAL after dropping replication slots
Next
From: John Iliffe
Date:
Subject: Re: [GENERAL] Unable to connect to Postgresql