上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
摘要: 【参考】 https://www.cnblogs.com/flying-tiger/p/8414374.html 先写最简单的读写基本流程 【流程】 session1:drop table t1; session2:select * from t1; 1)session2进程读消息 单独的drop大 阅读全文
posted @ 2022-03-15 23:43 stupidstan2019 阅读(48) 评论(0) 推荐(0)
摘要: 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 阅读(99) 评论(0) 推荐(0)
摘要: 【参考】 https://www.interdb.jp/pg/pgsql06.html#_6.1. 【背景】 1)pg8.4引入,为了降低vacuum的代价 page的vm可见性决定了vacuum是否跳过这个page 2)pg9.6加强了vm的功能,包含了tuples是否被frozen的信息 【fr 阅读全文
posted @ 2022-03-15 08:07 stupidstan2019 阅读(101) 评论(0) 推荐(0)
摘要: 说明 analyze命令把每列信息写入到pg_statistic 测试 create table t1 (id int); insert into t1(id) values(1); analyze ​VERBOSE t1 1)执行第一次 rmgr: Heap len (rec/tot): 115/ 阅读全文
posted @ 2022-03-09 23:27 stupidstan2019 阅读(322) 评论(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)
摘要: 【申请调用栈】 数据结构 阅读全文
posted @ 2022-02-13 14:53 stupidstan2019 阅读(173) 评论(0) 推荐(0)
摘要: 【问题】 可重复读隔离级别右边更新成功 串行化隔离级别右边报错 【调用栈】 1)T6失败 (sxact)->flags & SXACT_FLAG_DOOMED) != 0#MySerializableXact.flags=8, SXACT_FLAG_DOOMED=8#&结果不等于0 T5 end时把 阅读全文
posted @ 2022-02-13 13:34 stupidstan2019 阅读(40) 评论(0) 推荐(0)
摘要: 【和不可重复读区别】 https://cloud.tencent.com/developer/article/1450773 [phantom read概念] A transaction re-executes a query returning a set of rows that satisfy 阅读全文
posted @ 2022-02-13 12:10 stupidstan2019 阅读(163) 评论(0) 推荐(0)
摘要: 【实验】 【逻辑】 存储数据 内存数据 阅读全文
posted @ 2022-02-13 00:27 stupidstan2019 阅读(28) 评论(0) 推荐(0)
摘要: 【实验】 session1BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ; select count(1) from t1; session2 insert into t1(id) values(1); 结果:session1读不到session2 阅读全文
posted @ 2022-02-12 23:26 stupidstan2019 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页