摘要: 1)设计文档 2)数据结构 3)申请内存 https://www.cnblogs.com/li_shugan/archive/2012/09/12/2677661.html 阅读全文
posted @ 2021-12-19 23:17 stupidstan2019 阅读(60) 评论(0) 推荐(0)
摘要: create table t11 (id int); select pg_relation_filepath('t1'); 输出到指定文件 \o /tmp/a.txt 两行pg_type表 https://www.yiibai.com/manual/postgresql/catalog-pg-typ 阅读全文
posted @ 2021-12-12 23:58 stupidstan2019 阅读(62) 评论(0) 推荐(0)
摘要: 1)线程逻辑 线程调用.xmind 阅读全文
posted @ 2021-12-08 00:14 stupidstan2019 阅读(28) 评论(0) 推荐(0)
摘要: 【环境安装】 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 阅读(43) 评论(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 阅读(44) 评论(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 阅读(41) 评论(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 阅读(26) 评论(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 阅读(67) 评论(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 阅读(50) 评论(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 阅读(149) 评论(0) 推荐(0)