摘要: 【环境安装】 virtualBox CentOS Linux release 7.6.1810 (Core) yum install yum-utils nss-softokn-debuginfo --nogpgcheck -y debuginfo-install -y glibc bzip2-li 阅读全文
posted @ 2021-11-28 17:37 stupidstan2019 阅读(38) 评论(0) 推荐(0)
摘要: 配置文件 recovery_parse_workers=2recovery_redo_workers=2hot_standby=off /home/postgres/openGauss-server/dest/bin/gaussdb -D /home/postgres/openGauss-serve 阅读全文
posted @ 2021-10-30 01:04 stupidstan2019 阅读(40) 评论(0) 推荐(0)
摘要: https://gitee.com/opengauss 环境搭建指导 https://opengauss.org/zh/blogs/blogs.html?post/xingchen/opengauss_compile/ export CODE_BASE=/home/postgres/openGaus 阅读全文
posted @ 2021-10-21 00:58 stupidstan2019 阅读(36) 评论(0) 推荐(0)
摘要: /home/postgres/pg11/project/bin/pg_ctl -D /home/postgres/pg11/data -l ~/logfile start postgres=# begin; BEGIN postgres=*# insert into t1(id) values(1) 阅读全文
posted @ 2021-10-15 23:34 stupidstan2019 阅读(25) 评论(0) 推荐(0)
摘要: 1)备库初始状态 [jiang@paf2 pg11]$ pg_controldata data/ | grep 'Database cluster state' Database cluster state: in archive recovery 2)停掉主库,promote备库 pg_ctl p 阅读全文
posted @ 2021-10-02 23:38 stupidstan2019 阅读(62) 评论(0) 推荐(0)
摘要: 【参考】 https://www.cnblogs.com/seasonzone/p/6089350.html 【流程】 1)查看备机名 postgres=# select * from pg_stat_replication; application_name=walreceiver 2)修改配置 阅读全文
posted @ 2021-10-02 23:06 stupidstan2019 阅读(45) 评论(0) 推荐(0)
摘要: 【参考】 https://blog.csdn.net/rudygao/article/details/49507281 【数据结构】 1)查询结构 SELECT * FROM pg_replication_slots; 2)官方介绍 3)存储位置 $pgdata/pg_replslot/postgr 阅读全文
posted @ 2021-10-02 22:19 stupidstan2019 阅读(146) 评论(0) 推荐(0)
摘要: 【参考】 http://mysql.taobao.org/monthly/2015/10/04/ 【备机】 1)startup进程,通知master进程启动walreceiver slotName="postgresql_node102" conninfo=ip,host,用户密码 2) 备机mas 阅读全文
posted @ 2021-10-02 21:56 stupidstan2019 阅读(39) 评论(0) 推荐(0)
摘要: 【测试方法】 select 1; exec_simple_query postgres.c:967 【执行过程】 1)pg_parse_query postgres.c:638 返回值 typedef struct List{ NodeTag type; #T_List int length=1; 阅读全文
posted @ 2021-10-02 18:30 stupidstan2019 阅读(36) 评论(0) 推荐(0)
摘要: 1) 启动和复制流程 2)事务提交等paxos状态机 阅读全文
posted @ 2021-10-01 16:28 stupidstan2019 阅读(40) 评论(0) 推荐(0)