上一页 1 ··· 19 20 21 22 23
摘要: 1)调用栈及参数 2)整体结构 阅读全文
posted @ 2021-08-27 00:19 stupidstan2019 阅读(43) 评论(0) 推荐(0)
摘要: checkpoint主要逻辑 1)获取checkpoint数据,从ShmemVariableCache里读 2)刷12类buff数据到磁盘 3)增加一个做checkpoint的xlog 4)更新controlFile,288字节 5)计算出不需要的segNo,根据文件名删除老的文件 【其他】 1)c 阅读全文
posted @ 2021-08-26 22:26 stupidstan2019 阅读(43) 评论(0) 推荐(0)
摘要: 查询系统字段 select attname, attnum, atttypid::regtype, attisdropped::text from pg_attribute where attrelid = 't1'::regclass; attname | attnum | atttypid | 阅读全文
posted @ 2021-08-26 00:09 stupidstan2019 阅读(128) 评论(0) 推荐(0)
摘要: 1)调用栈 2)主要就是创建了base/db/表名物理文件 base/12057/16387 参考:https://blog.csdn.net/yanzongshuai/article/details/107679206 阅读全文
posted @ 2021-08-25 20:33 stupidstan2019 阅读(62) 评论(0) 推荐(0)
摘要: 测试方法 1)插入100条数据 create table t1(id int,c1 varchar(50)); insert into t1 select generate_series(1,100),'#abcd#'; select count(*) from t1; 2)事务1 begin; s 阅读全文
posted @ 2021-08-23 01:05 stupidstan2019 阅读(136) 评论(0) 推荐(0)
摘要: wal文件结构 PG使用无符号64bit整型(uint64)作为日志文件的寻址空间,理论上来说,如果只有一个日志文件,那么这个事务日志文件的大小最大为2^64Bytes(即16M*1TB=16EB)。为了高效管理事务日志文件,PG把日志文件划分为N个大小为16M(默认值)的WAL segment f 阅读全文
posted @ 2021-08-20 00:43 stupidstan2019 阅读(541) 评论(0) 推荐(0)
摘要: 参考https://blog.csdn.net/zhangjs0322/article/details/39666889 编译器默认没有把宏定义扩展信息编译进二进制文件。 通过man gcc查看说明,如下 编译时需添加-gdwarf-2和-g3两个参数。 加了-g3的参数后,gcc编译的时候,会将扩 阅读全文
posted @ 2021-08-01 11:16 stupidstan2019 阅读(472) 评论(0) 推荐(0)
摘要: systemctl status firewalld.service systemctl stop firewalld.service 关闭开机启动 systemctl disable firewalld.service 阅读全文
posted @ 2021-07-31 23:57 stupidstan2019 阅读(874) 评论(0) 推荐(0)
摘要: 1)启动主要逻辑 2)一些辅助函数逻辑 阅读全文
posted @ 2021-07-10 00:53 stupidstan2019 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23