Postgres-XC (eXtensible Cluster)是一个提供写可扩展、 同步、 对称的和透明的 PostgreSQL 群集解决方案的开放源码项目。它是紧耦合的数据库组件,可以安装在多个硬件或虚拟机的集合。
相较于一台数据库服务器,写可扩展性意味着 Postgres-XC 可以配置与尽可能多的数据库服务器,以及你想要处理很多更多写入 (更新 SQL 语句)
对称意味着可以有更多客户端连接到其中的一个数据库服务器提供单一、 一致的群集全视图的数据库。
从任何数据库服务器的任何数据库更新的同步手段是立即可见的在不同的主机上运行的任何其他交易。
透明的手段,您 (和您的应用程序) 不必担心您的数据如何存储在多个数据库服务器内部。
您可以配置 Postgres-XC 在多个服务器上运行。您的数据是存储在分布式方式、 就是分区或复制,如为每个表由您选择。当你发出查询时,Postgres-XC 确定目标数据存储在哪里,到包含目标数据的服务器的问题相应的查询。
今日在ubuntu 12-10 使用postgreSQL时发现没有 initdb
正在解压缩 postgres-xc (从 .../postgres-xc_1.0.2-1ubuntu1_i386.deb) ... 正在处理用于 ureadahead 的触发器... 正在处理用于 man-db 的触发器... 正在设置 postgres-xc (1.0.2-1ubuntu1) ... 正在将用户“postgres-xc”加入到“ssl-cert”组中 The files belonging to this GTM system will be owned by user "postgres-xc". This user must also own the server process.
creating directory GTM ... ok creating configuration files ... ok
Success. You can now start the GTM server using:
gtm -D GTM
or gtm_ctl -Z gtm -D GTM -l logfile start
属于此数据库系统的文件宿主为用户 "postgres-xc". 此用户也必须为服务器进程的宿主. 数据库簇将带有 locale zh_CN.UTF-8 初始化. 默认的数据库编码已经相应的设置为 UTF8. initdb: 无法为语言环境"zh_CN.UTF-8" 找到合适的文本搜索配置 缺省的文本搜索配置将会被设置到"simple"
创建目录 CN ... 成功 正在创建子目录 ... 成功 选择默认最大联接数 (max_connections) ... 100 选择默认共享缓冲区大小 (shared_buffers) ... 24MB 创建配置文件 ... 成功 在 CN/base/1 中创建 template1 数据库 ... 成功 初始化 pg_authid ... 成功 初始化dependencies ... 成功 创建系统视图 ... 成功 creating cluster information ... 成功 正在加载系统对象描述 ...成功 creating collations ... 成功 创建字符集转换 ... 成功 正在创建字典 ... 成功 对内建对象设置权限 ... 成功 创建信息模式 ... 成功 正在装载PL/pgSQL服务器端编程语言...成功 清理数据库 template1 ... 成功 拷贝 template1 到 template0 ... 成功 拷贝 template1 到 template0 ... 成功
警告: 为本地连接启动了 "trust" 认证. 你可以通过编辑 pg_hba.conf 更改或你下 次运行 initdb 时使用 -A 选项.
Success. You can now start the database server of the Postgres-XC coordinator using:
postgres -C -D CN
or pg_ctl start -D CN -Z coordinator -l logfile
You can now start the database server of the Postgres-XC datanode using:
postgres -X -D CN
or pg_ctl start -D CN -Z datanode -l logfile
属于此数据库系统的文件宿主为用户 "postgres-xc". 此用户也必须为服务器进程的宿主. 数据库簇将带有 locale zh_CN.UTF-8 初始化. 默认的数据库编码已经相应的设置为 UTF8. initdb: 无法为语言环境"zh_CN.UTF-8" 找到合适的文本搜索配置 缺省的文本搜索配置将会被设置到"simple"
创建目录 DN1 ... 成功 正在创建子目录 ... 成功 选择默认最大联接数 (max_connections) ... 100 选择默认共享缓冲区大小 (shared_buffers) ... 24MB 创建配置文件 ... 成功 在 DN1/base/1 中创建 template1 数据库 ... 成功 初始化 pg_authid ... 成功 初始化dependencies ... 成功 创建系统视图 ... 成功 creating cluster information ... 成功 正在加载系统对象描述 ...成功 creating collations ... 成功 创建字符集转换 ... 成功 正在创建字典 ... 成功 对内建对象设置权限 ... 成功 创建信息模式 ... 成功 正在装载PL/pgSQL服务器端编程语言...成功 清理数据库 template1 ... 成功 拷贝 template1 到 template0 ... 成功 拷贝 template1 到 template0 ... 成功
警告: 为本地连接启动了 "trust" 认证. 你可以通过编辑 pg_hba.conf 更改或你下 次运行 initdb 时使用 -A 选项.
Success. You can now start the database server of the Postgres-XC coordinator using:
postgres -C -D DN1
or pg_ctl start -D DN1 -Z coordinator -l logfile
You can now start the database server of the Postgres-XC datanode using:
postgres -X -D DN1
or pg_ctl start -D DN1 -Z datanode -l logfile
属于此数据库系统的文件宿主为用户 "postgres-xc". 此用户也必须为服务器进程的宿主. 数据库簇将带有 locale zh_CN.UTF-8 初始化. 默认的数据库编码已经相应的设置为 UTF8. initdb: 无法为语言环境"zh_CN.UTF-8" 找到合适的文本搜索配置 缺省的文本搜索配置将会被设置到"simple"
创建目录 DN2 ... 成功 正在创建子目录 ... 成功 选择默认最大联接数 (max_connections) ... 100 选择默认共享缓冲区大小 (shared_buffers) ... 24MB 创建配置文件 ... 成功 在 DN2/base/1 中创建 template1 数据库 ... 成功 初始化 pg_authid ... 成功 初始化dependencies ... 成功 创建系统视图 ... 成功 creating cluster information ... 成功 正在加载系统对象描述 ...成功 creating collations ... 成功 创建字符集转换 ... 成功 正在创建字典 ... 成功 对内建对象设置权限 ... 成功 创建信息模式 ... 成功 正在装载PL/pgSQL服务器端编程语言...成功 清理数据库 template1 ... 成功 拷贝 template1 到 template0 ... 成功 拷贝 template1 到 template0 ... 成功
警告: 为本地连接启动了 "trust" 认证. 你可以通过编辑 pg_hba.conf 更改或你下 次运行 initdb 时使用 -A 选项.
Success. You can now start the database server of the Postgres-XC coordinator using:
postgres -C -D DN2
or pg_ctl start -D DN2 -Z coordinator -l logfile
You can now start the database server of the Postgres-XC datanode using:
postgres -X -D DN2
or pg_ctl start -D DN2 -Z datanode -l logfile
- Starting Postgres-XC datanode [ OK ]
- Starting Postgres-XC coordinator [ OK ]
- Starting Postgres-XC gtm [ OK ] pgxc_pool_reload
t (1 行记录)
正在处理用于 ureadahead 的触发器...