随笔分类 -  opengauss

摘要:【环境】 recovery_parse_workers=2recovery_redo_workers=2hot_standby=off 特性理解: 1)让多线程并行回放 2)事务和heap分别并行 3)需要等待的(如checkpoint),做同步逻辑 【调试】 1)启动13个线程,根据rmid分发到 阅读全文
posted @ 2022-03-16 20:47 stupidstan2019 阅读(65) 评论(3) 推荐(1)
摘要:1)整体内容 2)实际调试示例 插入一行数据 select * from t1; 2.1)调用栈 2.2)函数内逻辑 csn = TransactionIdGetCommitSeqNo(xid, false, true, false, snapshot); #=2 if (csn < snapsho 阅读全文
posted @ 2022-03-15 22:55 stupidstan2019 阅读(98) 评论(0) 推荐(0)
摘要:【问题描述】 写入unlogged表,gs_ctl正常停进程后,启动进程,数据丢失,和开源pg不一致 【问题定位】 1)启动读值数据错导致走recovery流程 checkPoint.redo=decoder->main_data RecPtr=checkPointLoc = t_thrd.shem 阅读全文
posted @ 2022-03-01 23:34 stupidstan2019 阅读(88) 评论(0) 推荐(0)
摘要:【pg】 退出后,有一条checkpoint_shutdown记录 checkPoint.redo=RecPtr 36AE9F10=917413648,最后一条记录lsn 进程启动时,这两个值相等-》inRecovery=false 就不处理init文件 【opengauss】 checkPoint 阅读全文
posted @ 2021-12-23 00:18 stupidstan2019 阅读(47) 评论(0) 推荐(0)
摘要:1)线程逻辑 线程调用.xmind 阅读全文
posted @ 2021-12-08 00:14 stupidstan2019 阅读(28) 评论(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 阅读(43) 评论(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)