不要在PostgreSQL中创建默认集群

阿图尔·奥瓦萨雷克(Artur Owczarek)

如何防止Postgresql-9.4创建默认集群(主要)?我有Ubuntu 14.04,使用aptitude和postresql官方存储库。我正在使用ansible控制多个服务器,并想创建自己的集群。

阿图尔·奥瓦萨雷克(Artur Owczarek)

负责自动创建主集群的是软件包postgresql-commons。该软件包的目的是允许多个群集在同一台计算机上的多个版本的PostgreSQL上运行。您可以同时安装不同版本的PostgreSQL。每个都可以管理多个集群。

Postgresql-commons在/ etc / postgresql-common /中有配置文件一个特别有趣的是createcluster.conf其内容如下:

# Default values for pg_createcluster(8)
# Occurrences of '%v' are replaced by the major version number,
# and '%c' by the cluster name. Use '%%' for a literal '%'.

# Create a "main" cluster when a new postgresql-x.y server package is installed
#create_main_cluster = true

# Default start.conf value, must be one of "auto", "manual", and "disabled".
# See pg_createcluster(8) for more documentation.
#start_conf = 'auto'

# Default data directory.
#data_directory = '/var/lib/postgresql/%v/%c'

# Default directory for transaction logs
# Unset by default, i.e. pg_xlog remains in the data directory.
#xlogdir = '/var/lib/postgresql/xlog/%v/%c/pg_xlog'

# Options to pass to initdb.
#initdb_options = ''

# The following options are copied into the new cluster's postgresql.conf:

# Enable SSL by default (using the "snakeoil" certificates installed by the
# ssl-cert package, unless configured otherwise here)
ssl = on

# Put stats_temp_directory on tmpfs
stats_temp_directory = '/var/run/postgresql/%v-%c.pg_stat_tmp'

# Add prefix to log lines
log_line_prefix = '%%t [%%p-%%l] %%q%%u@%%d '

为了防止它创建主集群,您必须安装postgresql-commons,取消注释行create_main_cluster,将其设置为false,然后以所需版本安装PostgreSQL。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

不要在 Django 中创建子对象

来自分类Dev

不要在循环错误中创建函数我无法修复

来自分类Dev

不要在循环内创建函数Javascript

来自分类Dev

JsHint W083不要在循环和jQuery的$ .each()函数中创建函数

来自分类Dev

Pyodbc-如果存在表,则不要在SSMS中创建

来自分类Dev

Hibernate不要在数据库中创建我的表

来自分类Dev

SchemaExport不要在数据库中创建我的表

来自分类Dev

如果条件返回false,请不要在Excel中创建空白单元格

来自分类Dev

保存活动实例,不要在第二次加载中创建

来自分类Dev

不要在可选的protobuf字段中设置默认值,以最大程度地减少通过网络发送的数据

来自分类Dev

不要在Rails中自动生成测试

来自分类Dev

不要在LINQPad中重用查询过程

来自分类Dev

不要在RestSharp中编码参数

来自分类Dev

不要在材料表中验证删除

来自分类Dev

不要在IE中运行JavaScript函数

来自分类Dev

不要在PartialView中运行javascript函数

来自分类Dev

不要在警报框中显示数字

来自分类Dev

不要在SSRS中显示行

来自分类Dev

如何使用默认集群设置在OrientJS中创建抽象类?

来自分类Dev

得到警告不要在jslint循环中创建函数

来自分类Dev

如何修复jslint警告不要在循环中创建函数

来自分类Dev

需要在集群中同步corosync.conf的方法

来自分类Dev

如何告诉python不要在列表中打印项目?

来自分类Dev

永远不要在git中推送合并的更改

来自分类Dev

不要在顺序链接的承诺中包含q许诺结果

来自分类Dev

不要在最近的应用中显示我的应用

来自分类Dev

不要在dplyr中自动调用db_disconnector

来自分类Dev

不要在分组依据中包括选择列

来自分类Dev

Jackson XML +不要在标签中包装值

Related 相关文章

热门标签

归档