如何使用postgresql 9.6 集群9.6

PostgreSQL 9.6 Beta3更新版本发布说明_postgres用户会_传送门
PostgreSQL 9.6 Beta3更新版本发布说明
postgres用户会
译者:周到京
日,PostgreSQL全球开发小组宣布了PostgreSQL9.6第三个beta测试版提供下载。 这个测试版本包含9.6最终版本中将要包含的新功能,也包括在第一个和第二个beta测试版本中所发现问题的补丁。 我们鼓励广大用户在新的beta3版本中测试他们的各自的应用。自Beta2以来的更新
我们的用户和开发者通过对两个测试版本的试用,发现并汇报了不少的Bug和使用方面的问题,大部分在新的beta3版本中已修正。 如果你汇报过问题,请再测试一下我们新的版本以确认问题是否得到彻底解决。更新中包含最多的是有关并行查询方面的问题:支持TABLESAMPLE选项修正收集节点中查询成本数据检查并行查询中所关联表的安全性修正规划器中initPlans函数的问题修正几处用户编码的问题清除EXPLAIN的输出显示对内部并行聚合的多处更改其他已解决问题包括:对pg_stat_wal_receiver表增加conninfo字段在锁定记录时,清理所有锁定的visibilitymap状态正确地导出数据库和表空间的存取权限清单当用户的映射更新时,避免将所有外部连接缓冲全部失效修正tsquery中嵌套NOT操作符的问题允许在pl/pgsql内部使用IMPORT FOREIGN SCHEMA功能在EXPLAIN输出中仅打印一个指定的子计划一次修改GetForeignUpperPaths的API修正几处postgres_fdw的问题增加更多的正则表达式测试多处的文档更新和细化说明文档中多处翻译的更新
由于我们也修改了系统目录结构,在从以前的beta版本升级时需要使用pg_upgrade或是使用先导出再导入的方式进行升级。另外这个版本中也包括对pg_control工具的更新,这样也会与9.4之前的版本不兼容。这次更新也修正了以前版本中一些共性问题的补丁,将会在稍后的小版本中发布。
注意,还有一些已知的问题还未解决,在汇报Bug之前,请检查一下我们的 。Beta 版发布安排
这是9.6版本的第三个测试版本,PostgreSQL项目组还会根据测试情况发布更多测试版本,然后会发布一个或多个备选RC版本,准备在2016年底发布正式版本。更多信息请参考我们的 页面。相关链接
:https://www.postgresql.org/download/
:https://www.postgresql.org/developer/beta/
:https://www.postgresql.org/developer/beta/
:https://www.postgresql.org/docs/devel/static/release-9-6.html
:https://wiki.postgresql.org/wiki/PostgreSQL_9.6_Open_Items
觉得不错,分享给更多人看到
postgres用户会 微信二维码
分享这篇文章
7月24日 21:57
postgres用户会 最新文章
postgres用户会 热门文章postgresql下载|PostgreSQL 9.6.0 免费版 - 河东下载站PostgreSQL中9.6的主要改进包括:
顺序扫描的并行执行,连接和聚集
在vacuum冻结操作时避免不必要的页面扫描
同步复制现在允许使用多个备用服务器来提高可靠性
全文搜索现在可以搜索短语(多个相邻的字)
postgres_fdw现在支持远程连接,排序,UPDATE和DELETE
大幅度的性能提升,特别是在可扩展性,在多CPU服务器领域 &
以上项目中更详细的说明看 https://www.postgresql.org/docs/current/static/release-9-6.html
https://www.postgresql.org/download/
本站原创,转载时保留以下信息: 本文转自:深度开源() 原文地址:
& 深度开源CentOS 6.5下PostgreSQL 9.4.3安装与配置_数据库技术_Linux公社-Linux系统门户网站
你好,游客
CentOS 6.5下PostgreSQL 9.4.3安装与配置
来源:Linux社区&
作者:jxzhfei
一、简介PostgreSQL 是一种非常复杂的对象-关系型数据库管理系统(ORDBMS),也是目前功能最强大,特性最丰富和最复杂的自由软件数据库系统。有些特性甚至连商业数据库都不具备。这个起源于伯克利(BSD)的数据库研究计划目前已经衍生成一项国际开发项目,并且有非常广泛的用户。
二、系统环境系统平台: release 6.5 (Final)PostgreSQL 版本:PostgreSQL 9.4.3防火墙已关闭/iptables: Firewall is not running.SELINUX=disabled三、源码安装1. 下载PostgreSQL 源码包# wget http://ftp.postgresql.org/pub/source/v9.4.3/postgresql-9.4.3.tar.bz22. 解压源码包# tar xjf postgresql-9.4.3.tar.bz23. 进入解压后的目录# cd postgresql-9.4.34.安装依赖包yum -y install gcc*yum -y install readline-devel5.增加用户设置密码[root@postgresql ~]# adduser postgres[root@postgresql ~]# passwd postgresChanging password for user postgres.New password: BAD PASSWORD: it is too simplistic/systematicBAD PASSWORD: is too simpleRetype new password: passwd: all authentication tokens updated successfully.6.开始编译安装PostgreSQL 数据库。&[root@postgresql ~]# cd postgresql-9.4.3[root@postgresql postgresql-9.4.3]# ./configure --prefix=/home/postgres/pgsql&[root@postgresql postgresql-9.4.3]# gmake&[root@postgresql postgresql-9.4.3]# gmake install&7.设置环境变量[root@postgresql ~]# cd /home/postgres/[root@postgresql postgres]# lspgsql[root@postgresql postgres]# vi .bash_profile把 PATH=$PATH:$HOME/bin改成 PATH=$PATH:$HOME/bin:/home/postgres/pgsql/bin保存退出。让环境变量生效:在设置[root@postgresql ~]# vi .bash_profile把 PATH=$PATH:$HOME/bin改成 PATH=$PATH:$HOME/bin:/home/postgres/pgsql/bin保存退出。让环境变量生效:[root@postgresql ~]# source .bash_profile8.初始化数据库8.1新建数据目录[root@postgresql ~]# mkdir /home/postgres/pgsql/data8.2更改权限[root@postgresql ~]# chown postgres:postgres /home/postgres/pgsql/data8.3切换到postgres用户[root@postgresql ~]# su - postgres8.4 init db[postgres@postgresql ~]$ /home/postgres/pgsql/bin/initdb -D /home/postgres/pgsql/data到这里数据的初始化就完成9.系统服务9.1回到root用户[postgres@postgresql ~]$ exit9.2复制安装目录下的linux文件到/etc/init.d/进入postgresql 的安装目录(即刚刚使用tar命令解压的目录)[root@postgresql ~]# cd postgresql-9.4.3[root@postgresql postgresql-9.4.3]# cp contrib/start-scripts/linux /etc/init.d/postgresql9.3修改/etc/init.d/postgresql& 注意:红色是修改部分[root@postgresql postgresql-9.4.3]# vi /etc/init.d/postgresql#! /bin/sh&# chkconfig: # description: PostgreSQL RDBMS&# This is an example of a start/stop script for SysV-style init, such# as is used on Linux systems.& You should edit some of the variables# and maybe the 'echo' commands.## Place this file at /etc/init.d/postgresql (or# /etc/rc.d/init.d/postgresql) and make symlinks to#&
/etc/rc.d/rc0.d/K02postgresql#&
/etc/rc.d/rc1.d/K02postgresql#&
/etc/rc.d/rc2.d/K02postgresql#&
/etc/rc.d/rc3.d/S98postgresql#&
/etc/rc.d/rc4.d/S98postgresql#&
/etc/rc.d/rc5.d/S98postgresql# Or, if you have chkconfig, simply:# chkconfig --add postgresql## Proper init scripts on Linux systems normally require setting lock# and pid files under /var/run as well as reacting to network# settings, so you should treat this with care.&# Original author:& Ryan Kirkpatrick &&&# contrib/start-scripts/linux&## EDIT FROM HERE&# Installation prefixprefix=/home/postgres /pgsql&# Data directoryPGDATA="/home/postgres/pgsql/data"# Who to run the postmaster as, usually "postgres".& (NOT "root")PGUSER=postgres&# Where to keep a log filePGLOG="$PGDATA/serverlog"&# It's often a good idea to protect the postmaster from being killed by the# OOM killer (which will tend to preferentially kill the postmaster because# of the way it accounts for shared memory).& Setting the OOM_SCORE_ADJ value# to -1000 will disable OOM kill altogether.& If you enable this, you probably# want to compile PostgreSQL with "-DLINUX_OOM_SCORE_ADJ=0", so that# individual backends can still be killed by the OOM killer.#OOM_SCORE_ADJ=-1000# Older Linux kernels may not have /proc/self/oom_score_adj, but instead# /proc/self/oom_adj, which works similarly except the disable value is -17.# For such a system, enable this and compile with "-DLINUX_OOM_ADJ=0".#OOM_ADJ=-17&## STOP EDITING HERE&# The path that is to be used for the scriptPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin&# What to use to start up the postmaster.& (If you want the script to wait# until the server has started, you could use "pg_ctl start -w" here.# But without -w, pg_ctl adds no value.)DAEMON="$prefix/bin/postmaster"&# What to use to shut down the postmasterPGCTL="$prefix/bin/pg_ctl"&set -e&# Only start if we can find the postmaster.test -x $DAEMON ||{& & & & echo "$DAEMON not found"& & & & if [ "$1" = "stop" ]& & & & then exit 0& & & & else exit 5& & & & fi}&&# Parse command line parameters.case $1 in& start)& & & & echo -n "Starting PostgreSQL: "& & & & test x"$OOM_SCORE_ADJ" != x && echo "$OOM_SCORE_ADJ" & /proc/self/oom_score_adj& & & & test x"$OOM_ADJ" != x && echo "$OOM_ADJ" & /proc/self/oom_adj& & & & su - $PGUSER -c "$DAEMON -D '$PGDATA' &" &&$PGLOG 2&&1& & & & echo "ok"& & & & ;;& stop)& & & & echo -n "Stopping PostgreSQL: "& & & & su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast"& & & & echo "ok"& & & & ;;& restart)& & & & echo -n "Restarting PostgreSQL: "& & & & su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast -w"& & & & test x"$OOM_SCORE_ADJ" != x && echo "$OOM_SCORE_ADJ" & /proc/self/oom_score_adj& & & & test x"$OOM_ADJ" != x && echo "$OOM_ADJ" & /proc/self/oom_adj& & & & su - $PGUSER -c "$DAEMON -D '$PGDATA' &" &&$PGLOG 2&&1& & & & echo "ok"& & & & ;;& reload)& & & & echo -n "Reload PostgreSQL: "& & & & su - $PGUSER -c "$PGCTL reload -D '$PGDATA' -s"& & & & echo "ok"& & & & ;;status)& & & & su - $PGUSER -c "$PGCTL status -D '$PGDATA'"& & & & ;;& *)& & & & # Print help& & & & echo "Usage: $0 {start|stop|restart|reload|status}" 1&&2& & & & exit 1& & & & ;;esac&exit 0&9.4添加执行权限[root@postgresql postgresql-9.4.3]# chmod +x /etc/init.d/postgresql&9.5启动数据库[root@postgresql postgresql-9.4.3]# /etc/init.d/postgresql startStarting PostgreSQL: ok9.6让数据库开机启动[root@postgresql postgresql-9.4.3]# chkconfig --add postgresql[root@postgresql postgresql-9.4.3]# chkconfig postgresql on9.7创建数据库操作历史记录文件 [root@postgresql postgresql-9.4.3]# touch /home/postgres/pgsql/.pgsql_history[root@postgresql postgresql-9.4.3]# chown postgres:postgres /home/postgres/pgsql/.pgsql_history10.测试使用[root@postgresql postgresql-9.4.3]# su - postgres[postgres@postgresql ~]$ createdb test[postgres@postgresql ~]$ psql testpsql (9.4.3)Type "help" for help.test=#&源码编译安装成功。
------------------------------------华丽丽的分割线------------------------------------
CentOS 6.3环境下yum安装PostgreSQL 9.3
PostgreSQL缓存详述
Windows平台编译 PostgreSQL
下LAPP(Linux+Apache+PostgreSQL+PHP)环境的配置与安装
Ubuntu上的phppgAdmin安装及配置
CentOS平台下安装PostgreSQL9.3
PostgreSQL配置Streaming Replication集群
如何在CentOS 7/6.5/6.4 下安装PostgreSQL 9.3 与 phpPgAdmin&
------------------------------------华丽丽的分割线------------------------------------
PostgreSQL 的详细介绍:PostgreSQL 的下载地址:
本文永久更新链接地址:
相关资讯 & & &
& (09/16/:17)
& (03/02/:36)
& (06月13日)
& (05/19/:24)
& (12/26/:33)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款

我要回帖

更多关于 postgresql 9.6特性 的文章

 

随机推荐