
PostgreSQL
文章平均质量分 95
TheShy:)
这个作者很懒,什么都没留下…
展开
-
PostgreSQL内核学习--Chapter 6 VACUUM Processing
Vacuum processing performs the following tasks for specified tables or all tables in the database.(真空处理对指定的表或数据库中的所有表执行以下任务:)Freezing old txids(冻结旧的事务id。Removing dead tuples(移除死元组。翻译 2023-07-14 17:02:50 · 192 阅读 · 0 评论 -
PostgreSQL-UDF用户自定义函数-扩展插件
【代码】PostgreSQL-UDF用户自定义函数-扩展插件。原创 2023-08-17 16:56:42 · 1678 阅读 · 2 评论 -
PostgreSQL内核学习--Chapter 9 WAL
XLOG记录的LSN(日志序列号)代表XLOG记录写入事务日志的位置,XLOG记录的LSN是其唯一标识的id)(的情况下,应对上一小节中提到的系统崩溃,pg支持事务日志,在本小节中,介绍了一些关键词和关键概念,以及事务日志数据的编写和数据库的恢复).)(对主要关键词和关键概念的介绍完成后,现在起将会介绍在执行事务日志的情况下元组的INSERT操作,如下图:).(pg会将所有数据库系统的改变以历史数据存储在固存中,以应对系统的崩溃,在pg中,历史数据一般被称之为。翻译 2023-07-28 17:03:30 · 219 阅读 · 0 评论 -
PostgreSQL源码学习--Chapter 2 Process and Memory Architecture
replication associated processes(与复制相关的进程)background worker process(后台工作进程)PostgreSQL server(PG服务器)background process(后台进程)Back-end process(后端进程)转载 2023-06-15 17:16:21 · 177 阅读 · 0 评论 -
PostpreSQL源码学习-Chapter3 Query Processing
The back-end process(会话服务程序)consists of five subsystems:(or called Five steps)generates a parse tree(根据生成解析树)from an SQL statement(SQL 语句) in plain text.carries out a semantic analysis of a parser tree(对上一步生成的解析树进行语义分析)and。翻译 2023-06-16 17:12:44 · 551 阅读 · 0 评论 -
PostpreSQL源码学习-Chapter1 Database Cluster, Databases and Tables
mapping disk physical location to the logical name. (symbolic link, 符号链接)(表空间tablespace实际就是给表制定一个存储目录,用来存放数据库对象的文件的位置。基本上(但不是所有的)都和文件对应的对象的OIDs一致,也就是大部分数据库对象的文件名就是该数据库对象的。数据文件内部 is divided into。中又分为三种数据类型,定义为一个结构体。对应数据库对象(表,索引…翻译 2023-06-14 17:16:44 · 198 阅读 · 0 评论 -
PostgreSQL内核学习--Chapter 7 Heap Only Tuple and Index-Only Scans
However, a problem arises if the dead tuples in the table pages are removed. For example, in Fig. 7.4(a), if ‘Tuple_1’ is removed since it is a dead tuple, ‘Tuple_2’ cannot be accessed from the index.(然而,也产生了一个问题,如果旧的元组被当做死元组被移除了,例如上面例子中,如果。就不能被索引访问了)翻译 2023-07-20 16:53:36 · 145 阅读 · 0 评论 -
PostgreSQL内核学习--Chapter 5 Concurrency Control(并发控制)
前21亿个txid是“过去的”,后21亿个是“未来的“).(为了执行SI,一些RDBMS,例如Oracle,用回滚段,当写一个新的数据项时,旧版本的数据项就会被写进回滚段,接着新数据项被写入数据段。pg用一个更简单的方法,一组新数据项被直接插入相关的表页,当需要读取数据项的时候,pg通过应用。(Fig. 5.1 a)).(Txid可以相互进行比较,例如:从txid 100的角度来看,大于100的txid是“在未来”的,并且它们从txid100是“不可见的”;(S2PL,严格的两项锁定),翻译 2023-07-07 16:59:04 · 356 阅读 · 0 评论 -
PostgreSQL内核学习--Chapter 8 Buffer Manager
This section introduces key concepts required to facilitate descriptions in the subsequent sections.(这一个小节介绍了一些关键概念,以便在后续的小节中更详细的介绍。翻译 2023-07-21 16:57:37 · 277 阅读 · 0 评论 -
PostpreSQL内核学习-Chapter4 Foreign Data Wrapper(FDW)
【代码】PostpreSQL内核学习-Chapter4 Foreign Data Wrapper(FDW)原创 2023-07-05 17:26:18 · 526 阅读 · 0 评论 -
PostgreSQL内核学习--Chapter 10 Base Backup & Point-in-Time Recovery
创建的归档日志恢复数据簇) For example, even if you made a critical mistake (e.g. truncating all tables), this feature enables you to restore the database of the point just before the mistake you have made.(例如,即使你犯了一个严重的错误(例如:截断了所有的表),这项功能可以将数据库恢复到犯错之前的时间点)翻译 2023-08-04 17:11:16 · 151 阅读 · 0 评论 -
CentOS 7编译安装调试PostgreSQL源码
【代码】CentOS 7安装编译调试 Postgres,gdb调试原创 2023-06-09 11:41:32 · 1164 阅读 · 0 评论 -
同步流复制过程
(同步)可以一主一备,但是如果备库损坏,会导致主库部分数据丢失(异步流复制则不会)此过程同时也包含了“异步”流复制的设置过程。原创 2024-01-09 09:27:24 · 496 阅读 · 0 评论 -
PostgreSQL内核学习--Chapter 11 Stream Replication
start-up – From starting the walsender to the end of handshaking. See Figs. 11.1(5)–(6).(启动状态——从。streaming – While Streaming Replication is working. See Fig. 11.1(8).(流复制阶段,见图11.1(8))catch-up – During the catch-up phase. See Fig. 11.1(7).(追赶阶段,见图11.1(7))翻译 2023-08-08 17:17:51 · 305 阅读 · 0 评论