自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Silence Ray的博客

不忘初心,方得始终

  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 postgresql initdb过程中大体做了什么

1.创建pg的data主目录,以及其所有子目录2.生成配置文件postgresql.conf3.创建template1数据库4.对template1数据库加载初始化数据5.复制template1到template0数据库6.复制template1到postgres数据库

2017-04-28 10:29:58 809

原创 postgresql使用RHCS套件搭建HA高可用集群

环境:数据库服务器 2台 服务器一 操作系统:CentOS 6.8 x86_64 IP(eth0):192.168.11.61 主机名:node1 服务器二 操作系统:CentOS 6.8 x86_64 IP_1(eth0):192.168.11.62 主机名:node2存储服务器 操作系统:CentOS 6.8 x86_64

2017-04-27 16:00:45 3004

转载 postgresql减少wal日志生成量的方法

1、在繁忙的系统中,如果需要降低checkpoint发生的频率,减少WAL日志的生成量,减轻对系统IO的压力,可以通过以下两种方法。1) 调整WAL segment大小,最高可以调整到64MB,不过只能通过编译来调整。对于已有系统不太方便;2) 增大checkpoint_segments设置,使得checkpoint不会过于频繁地被触发;2、在9.5中,checkpoint_segments

2017-04-25 10:40:52 4356

原创 使用yum安装postgresql 10 dev

环境centos 7 64位数据库:pg10dev参考网址:https://yum.postgresql.org/news10snapshot-ready-for-testing.phpyum installationhttps://wiki.postgresql.org/wiki/YUM_Installation创建用户[root@localhost ~]#useradd po

2017-04-24 11:27:32 7045

原创 benchmarksql在postgresql上的安装、使用

1.创建用户和数据库[postgres#localhost ~] $ psql postgrespsql (9.5.2)Type "help" for help.postgres=# CREATE USER benchmarksql WITH ENCRYPTED PASSWORD 'changeme';postgres=# CREATE DATABASE benchmarksql OW

2017-04-18 15:25:32 6338 1

原创 pgpool3.2.9中编译 pgpool-walrecrunning函数出错

在做pgpool的时候选择了一个相对较老的版本3.2.9在pg9.4上做实验出现以下错误[postgres@barman pgpool-walrecrunning]$ make gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-forma

2017-04-17 16:13:26 676

原创 postgresql上安装sysbench-0.5

环境centos 6.8pg9.6sysbench-0.5[postgres@node2]$ tar -xvf sysbench-0.5.tar.gz[postgres@node2 sysbench-0.5]$ lltotal 100-rw-r--r--. 1 postgres postgres 3074 Oct 19 2012 autogen.sh-rw-r--r--. 1

2017-04-12 11:06:16 1163

原创 postgresql遇到“Connection refused”和“No route to host”大概的解决方法

一般我们遇到这个问题的时候都是连接远程主机的时候,会出现这个报错psql: could not connect to server: connection refusedIs the server running on host "192.168.11.70" and accepting TCP/IP connections on port 5432? psql: could

2017-04-10 09:23:05 9976

原创 pl/proxy-2.5安装在postgresql9.6上无法编译

在postgresql安装编译pl/ploxy-2.5报错postgres@node2 plproxy-2.5]$ makeflex -osrc/scanner.c src/scanner.lbison -b src/parser -d src/parser.ygcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-

2017-04-06 11:17:20 943

pg_bigm-1.2-20200228.gz

pg支持模糊查询的插件,使用场景为业务系统要进行大量的模糊查询的时候,使用此插件会加快查询的速度,比pg_trgm的优势在于支持任意字符的模糊查询

2020-07-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除