摘要: 【调用入口】 【整体流程】 1)生成tuple对象 一共28字节 2)找到page和指定行 3)拷贝数据到page里 4)插入wal日志 【数据内容】 图示 【参考】 https://blog.csdn.net/postgres20/article/details/63290072 阅读全文
posted @ 2021-09-19 22:15 stupidstan2019 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 【tuple结构代码】 计算t_bits offset看上去应该是32,结果是23 【相关逻辑】 1) (type*)0 一个 type 类型的NULL指针用这个指针访问结构体内的成员是非法的 2)&(((type*)0)->field)计算 field 的地址 ,编译器不会产生访问 field 的 阅读全文
posted @ 2021-09-19 16:46 stupidstan2019 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 【调用栈】 【业务逻辑】 【数据结构】 【参考】 https://zhuanlan.zhihu.com/p/100424042 阅读全文
posted @ 2021-09-19 10:59 stupidstan2019 阅读(29) 评论(0) 推荐(0) 编辑