会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stupidstan2019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
下一页
2021年9月21日
xl集群搭建
摘要: 【基础版】 一个gtm,一个cn,一个dn 【参考】 https://www.cnblogs.com/lottu/p/5646486.html 本地配置 F:\2021\typora总结\postgres-xl
阅读全文
posted @ 2021-09-21 01:00 stupidstan2019
阅读(26)
评论(0)
推荐(0)
2021年9月20日
备机收复制日志和应用流程
摘要: 【参考】 http://mysql.taobao.org/monthly/2015/10/04/ 【walreceiver线程】 收消息,wal消息的头是‘w’,写xlog 调用xlogWrite写入xlog 【startup线程】 收到消息apply调用栈,跟启动过程是一个for循环
阅读全文
posted @ 2021-09-20 21:35 stupidstan2019
阅读(32)
评论(0)
推荐(0)
【转载】Postgres xc 和 xl
摘要: 【原文】 https://blog.csdn.net/yeruby/article/details/49004329 【笔记】 XL:eXtensible Lattice 1994年,Postgre95发布,开源。1996年,PostgreSQL继承了Postgre95,发布。2010年,Postg
阅读全文
posted @ 2021-09-20 20:50 stupidstan2019
阅读(259)
评论(4)
推荐(0)
T_BaseBackupCmd
摘要: 【调用栈】 【调用sendFile接口发送文件】 pq_putmessage('d', buf, cnt) 都是直接读文件内容
阅读全文
posted @ 2021-09-20 20:44 stupidstan2019
阅读(24)
评论(0)
推荐(0)
pg_basebackup -Xs -d "hostaddr=192.168.3.139 port=5432 user=repuser password=123456" -D /home/jiang/pg11/data -v -Fp
摘要: 【协议流程】 【服务端看接口】 1)SHOW wal_segment_size 2)IdentifySystem 系统标识 timeline wal location databaseName 3)BASE_BACKUP LABEL 'pg_basebackup base backup' NOWAI
阅读全文
posted @ 2021-09-20 20:30 stupidstan2019
阅读(376)
评论(0)
推荐(0)
【转载】主备环境搭建
摘要: 【环境】zhuji 192.168.3.139beiji 192.168.3.204create user repuser with login replication password '123456'; 【主机】1)修改pg_hba.conf host replication repuser 1
阅读全文
posted @ 2021-09-20 16:47 stupidstan2019
阅读(158)
评论(0)
推荐(0)
进程启动wal回放
摘要: 【测试方法】 insert into t1(id) values(1); 杀进程 【dump日志】 【回放逻辑】 1)获取checkpoint点 2)从checkpoint点后循环读record 3)回放 调用栈 4)内部逻辑 【RmgrTable23种类型】
阅读全文
posted @ 2021-09-20 13:00 stupidstan2019
阅读(40)
评论(0)
推荐(0)
vacuum full t1;
摘要: 【测试方法】 insert into t1 select generate_series(1,227);postgres=# insert into t1 select generate_series(1,227); INSERT 0 227文件16KB postgres=# select pg_r
阅读全文
posted @ 2021-09-20 11:48 stupidstan2019
阅读(32)
评论(0)
推荐(0)
page,pageHeader,元祖结构,及插入一行变化
摘要: 【结构】 【插入变化】
阅读全文
posted @ 2021-09-20 11:25 stupidstan2019
阅读(30)
评论(0)
推荐(0)
vacuum回收一行逻辑
摘要: 【测试方法】 insert into t1(id) values(2); update t1 set id=3; 执行vacuum t1; 【测试结果】 第一行 lp->lp_off :从8128变为8160 【代码入口】 compactify_tuples
阅读全文
posted @ 2021-09-20 11:24 stupidstan2019
阅读(40)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
下一页
公告