Deploy Postgres cluster with specific locale
I have the need to deploy a cluster and define a specific locale. Normally I would do
pg_createcluster --locale pt_PT.ISO-8859-1 11 main
How can this be achieved using clustercontrol to deploy the cluster with that specific locale?
Since ClusterControl does not use pg_createcluster to initialize the server, I believe the --locale option has to be specified when running initdb command.
Unfortunately, ClusterControl runs the initdb command without the --locale option, and it's hardcoded. I can file a feature request to the dev team to support this. At the time being, you may create the cluster using pg_createcluster with the locale option (or initdb --locale=..), and then import them into ClusterControl via Import Existing Cluster function.
Please sign in to leave a comment.