摘要: 环境 IP 规划 node01 10.10.10.11 node02 10.10.10.12 vip-master 10.10.10.13 建议还是使用 172.17.0.xx组网, 实际测试在宿主机只能 ping 通10.10.10.11不能 ping 通 12 与 13 ,原因不知道 创建子网 阅读全文
posted @ 2022-06-05 22:25 岳麓丹枫 阅读(154) 评论(0) 推荐(0) 编辑
摘要: CentOS7.9 安装 PG13 + repmgr +pgpool 实现负载均衡读写分离 环境规划 192.168.0.110 node110 master 192.168.0.111 node111 slave1 192.168.0.112 node112 slave2 192.168.0.11 阅读全文
posted @ 2022-05-20 22:27 岳麓丹枫 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 已知数据 drop table if exists test cascade; create table test(id int, name varchar,create_time timestamp); insert into test values(1,'a','2022-4-29 11:28: 阅读全文
posted @ 2022-05-04 00:33 岳麓丹枫 阅读(78) 评论(1) 推荐(1) 编辑
摘要: 设置静态IP BOOTPROTO=static ONBOOT=yes IPADDR=192.168.1.73 GATEWAY=192.168.1.1 NETMASK=255.255.255.0 DNS1=8.8.8.8 修改 yum 源为华为源 cp -a /etc/yum.repos.d/Cent 阅读全文
posted @ 2020-11-14 17:53 岳麓丹枫 阅读(214) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE FUNC... 阅读全文
posted @ 2019-11-19 21:02 岳麓丹枫 阅读(148) 评论(0) 推荐(0) 编辑
摘要: PG distinct与distinct o... 阅读全文
posted @ 2019-11-19 09:13 岳麓丹枫 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 实例create table ta (id ... 阅读全文
posted @ 2019-11-15 17:24 岳麓丹枫 阅读(350) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE accounts ... 阅读全文
posted @ 2019-11-14 21:14 岳麓丹枫 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 实例1create table test(i... 阅读全文
posted @ 2019-11-14 17:14 岳麓丹枫 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 直接看例子drop table if exi... 阅读全文
posted @ 2019-11-05 20:28 岳麓丹枫 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 直接上例子/home/postgres/pg... 阅读全文
posted @ 2019-11-05 18:46 岳麓丹枫 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 目录构造表与数据drop table if ... 阅读全文
posted @ 2019-11-05 18:09 岳麓丹枫 阅读(900) 评论(0) 推荐(0) 编辑
摘要: efc=# select tablenam... 阅读全文
posted @ 2019-11-04 09:22 岳麓丹枫 阅读(1561) 评论(0) 推荐(0) 编辑
摘要: 我是一级标题测试一下 ... 阅读全文
posted @ 2019-11-03 12:00 岳麓丹枫 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 结束连接的进程pg_terminate_ba... 阅读全文
posted @ 2019-10-16 11:33 岳麓丹枫 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://blog.51cto.com... 阅读全文
posted @ 2019-10-15 18:35 岳麓丹枫 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 实例1CREATE OR REPLACE F... 阅读全文
posted @ 2019-10-10 16:54 岳麓丹枫 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 实例imos=# SELECT FO... 阅读全文
posted @ 2019-10-08 21:50 岳麓丹枫 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Yumdownloader 是一款简单,但是... 阅读全文
posted @ 2019-10-03 21:55 岳麓丹枫 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: on commit drop结论on com... 阅读全文
posted @ 2019-09-30 18:43 岳麓丹枫 阅读(727) 评论(0) 推荐(0) 编辑