1. 安装环境 linux版本:CentOSrelease6.2(Final) pg版本 :postgresql-9.5.02. pg数据库下载地址--http://www.postgresql.org/ftp/source/3. 安装依赖包>yum installgcc*>yum insta...
分类:
数据库 时间:
2016-01-21 19:46:11
阅读次数:
177
参考:https://hub.docker.com/_/postgres/https://docs.docker.com/engine/installation/debian/利用Docker进行多实例的安装,相对于源码安装更简单,更方便,隔离性也更好 。安装Docker更新安装源sudo apt-...
分类:
数据库 时间:
2016-01-19 10:33:36
阅读次数:
245
create or replace function random_string(integer)returns text as$body$ select array_to_string(array(select substring('0123456789ABCDEFGHIJKLMNOPQRSTUV...
分类:
数据库 时间:
2016-01-19 09:06:19
阅读次数:
361
参考:http://www.postgresql.org/docs/9.5/static/continuous-archiving.htmlhttp://www.mkyong.com/database/postgresql-point-in-time-recovery-incremental-bac...
分类:
数据库 时间:
2016-01-18 20:43:45
阅读次数:
316
Streaming replication slots are a pending feature in PostgreSQL 9.4, as part ofthe logical changeset extractionfeature.What are they for, what do you ...
分类:
数据库 时间:
2016-01-18 01:49:50
阅读次数:
307
你是直接执行的psql.exe吧? 那么需要加入数据库位置等一些参数的。Windows系统下,PostgreSQL有提供一个命令行脚本runsql.bat, 在安装目录的scripts文件夹中,一般是执行这个脚本来开启psql的,其执行画面如下:来自为知笔记(Wiz)
分类:
数据库 时间:
2016-01-17 21:42:14
阅读次数:
836
参考:http://www.postgresql.org/docs/current/static/pgupgrade.html概述从低版本升级到 新版本,有几种可选的方案。一是使用pg_dump/pg_restore,该方法比较耗时,也即是停机时间比较长,特别是大数据量下,但是 稳定且易于操作。.....
分类:
数据库 时间:
2016-01-16 22:31:52
阅读次数:
271
PostgreSQL Monitor pg_view
分类:
数据库 时间:
2016-01-15 13:01:25
阅读次数:
217
前言 在使用cdh集群过程中,难免会因为某些不可抗拒的原因导致节点IP或hostName变动,而cm的监控界面无法完成这些事情,但是cm将集群中所有的主机的信息都存在postgresql数据库的hosts表中, 现在让我们来通过修改hosts来完成这个操作。第一步,关闭服务1. 关闭集群服务,及 ....
分类:
其他好文 时间:
2016-01-14 14:13:45
阅读次数:
235