会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stupidstan2019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
23
下一页
2022年2月9日
执行计划相关
摘要: 【参考】 https://www.cybertec-postgresql.com/en/postgresql-indexing-index-scan-vs-bitmap-scan-vs-sequential-scan-basics/ 【测试方法】 CREATE TABLE sampletable (
阅读全文
posted @ 2022-02-09 20:32 stupidstan2019
阅读(31)
评论(0)
推荐(0)
2022年1月23日
读流程
摘要: 0)插入两行数据 INSERT INTO usersSimple (user_id, fname) VALUES (1745, 'john'); INSERT INTO usersSimple (user_id, fname) VALUES (1744, 'smith'); 1)数据存储 在这个bu
阅读全文
posted @ 2022-01-23 08:57 stupidstan2019
阅读(32)
评论(0)
推荐(0)
2022年1月15日
clion调试
摘要: 【问题描述】 直接设置会遇到超时,tcpdump抓包传输有1GB 【问题定位】 看mysqld是1GB,把clion的符号表设置下,应该就不用传输物理文件 【调试效果】
阅读全文
posted @ 2022-01-15 23:16 stupidstan2019
阅读(79)
评论(0)
推荐(0)
一条binlog
摘要: 【测试】 insert into t1(id) values(1); 插入前后binlog文件大小从698变为938,涨240 对应这4条 show binlog events in "binlog.000017"; 【调用栈】
阅读全文
posted @ 2022-01-15 22:48 stupidstan2019
阅读(28)
评论(0)
推荐(0)
查看binlog
摘要: 【查看binlog】 show variables like '%log_bin%'; + + + | Variable_name | Value | + + + | log_bin | ON | | log_bin_basename | /data/mysql/binlog | | log_bin
阅读全文
posted @ 2022-01-15 21:57 stupidstan2019
阅读(210)
评论(0)
推荐(0)
2022年1月8日
咨询锁
摘要: 【测试】 select pg_advisory_lock(23); 【调用栈】 主要逻辑 内部的结构先放着,主要是判断granted全部为0 测试模型,granted[7]=1,#ExclusiveLock=7 【大概结构参考cmu资料】 https://www.cnblogs.com/gatsby
阅读全文
posted @ 2022-01-08 21:05 stupidstan2019
阅读(39)
评论(0)
推荐(0)
select for update和update的同步
摘要: 【测试步骤】 session1 begin; select * from t1 for update; session2 update t1 set id=2 ; 【流程】 1)session1, 给tuple设置Xmax 2)session2,检测tuple状态 result = HeapTupl
阅读全文
posted @ 2022-01-08 15:29 stupidstan2019
阅读(105)
评论(0)
推荐(0)
更新一行逻辑update t1 set id=4;找tuple的栈
摘要: 【调用栈】 【带where条件对比】
阅读全文
posted @ 2022-01-08 10:24 stupidstan2019
阅读(37)
评论(0)
推荐(0)
2022年1月3日
XLOG_NEXTOID
摘要: 【写入】 【启动初始化】 【回放】
阅读全文
posted @ 2022-01-03 20:44 stupidstan2019
阅读(36)
评论(0)
推荐(0)
XLOG_FPI
摘要: 【场景和触发】 初始化一个数据页后(初始化索引页时,表页重构时) drop table if exists t_index;create table t_index (id int,c1 char(8));CREATE INDEX my_pg_index ON t_index USING btree
阅读全文
posted @ 2022-01-03 20:33 stupidstan2019
阅读(46)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
23
下一页
公告