Design and Implementation of Relational-Database System Transaction Recovery strategy
- Author
- ZhouWenSheng
- Advisor
- YeXiaoJun
- School
- Tsinghua University
- Major
- Software Engineering
- Classification
- TP309.3 Data backup and recovery
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 328
- Citations
- 3
Abstract
Database management system in order to ensure that in the case of system failure , the data security and consistency during operation to save a certain amount of redundant information , including database backup and log information . As a large-scale object-relational database , PostgreSQL also uses such a way that a complete record of the historical database update , to ensure the consistency of the database system from the impact of various fault . In this thesis, the focus on analysis of the the PostgreSQL transaction manager , Log Manager and Recovery Manager implementation based on the design of improved log management and recovery management performance , and achieve . Finally, according to the test results , the place of the PostgreSQL transaction processing can be improved further solutions . The main contribution of the paper include : 1 ) dual- write cache technology to greatly reduce the size of the PostgreSQL logging , transaction concurrency , system performance can be improved . 2 ) Add in the data buffer pool dirty write a linked list and enable background write process reduces the I / O overhead of the checkpoint , so as to improve the process of doing a checkpoint system performance . 3 ) through the analysis of the test results , we summarize improve transaction processing capabilities of factors need to be considered and made further improvement ideas and solutions . In this thesis, improved the PostgreSQL transaction processing capabilities , to achieve a better performance database management system .
Table of contents
Chapter Introduction 8-15
1.1 Project Background and significance 8
1.2 Transaction Recovery Strategy for the development of the history and current situation of 8-9
1.3 Overview of the transaction system 9-13
1.3.1 transactional systems concurrency control 10
1.3.2 transaction system recovery mechanism 10-13
1.4 thesis work content 13-14
the 1.5 paper organization 14-15
second transaction recovery mechanism implemented in the DBMS 15-29
2.1 Transaction Manager 15-16
2.2 log manager 16-20
2.2.1 log management functionality 16 <br / > 2.2.2 logs role the agreement (WAL) 16
2.2.3 logs the first to write the log 16-17
2.2.4 Classification 17-18
2.2.5 checkpoint 18-20
2.2.6 various system log management methods 20
2.3 Recovery Manager 20 - 28
2.3.1 Recovery Manager functionality 20
2.3.2 buffer management strategy of the recovery strategy 20-21
2.3.3 different systems recovery strategy 21-28
2.4 Summary 28-29
Chapter PostgreSQL transaction recovery management analysis and improvement of design 29-54
3.1 PostgreSQL function modules Overview the transactional systems
3.2 PostgreSQL 29-31 31-32
3.3 PostgreSQL transaction manager 32-33
3.4 PostgreSQL multi-version timestamp model 33-35
3.4.1 multi-version timestamp model storage management 33-34
version 3.4.2 and more concurrency control theory 34
3.4.3 PostgreSQL multi-version mechanisms to achieve 34-35
3.5 PostgreSQL log management, analysis and improvement of design 35 - 50
3.5.1 state of affairs (clog) log management nbsp 36
3.5.2 redo log management implementations; 36-40
3.5.3 redo log management Improving Design 40-43
3.5.4 checkpoint achieve 43-46
3.5.5 checkpoint improved design 46-50
3.6 PostgreSQL recovery manager improved design 50-53
3.6.1 PostgreSQL Recovery Manager 50-52
3.6.2 recovery algorithm improvement program 52-53
3.7 Summary 53-54
Chapter improvement program to achieve 54-73
4.1 design purposes and principles 54-55
4.1.1 designed 54
4.1.2 design principles 54-55
4.2 dual write cache design and implementation 55 -59
4.2.1 dual write cache structure design the 55-58
4.2.2 dual-write cache concurrency control 58
4.2.3 dual write cache replacement strategy 58-59
4.3 dirty write a linked list of design 59-61
4.4 The main function is to achieve 61-65
4.5 module integrated 65-68
4.5.1 change log to record information 65-66
4.5.2 checkpoint realization 66
4.5.3 the the background writing process implementation 66
4.5.4 recovery algorithm the 66-68
4.6 tests and conclusions 68-72
4.6.1 TPC-C test About 68
4.6.2 Test Results the 68-71
4.6.4 the results of analysis and conclusions 71-72
4.7 Summary the 72-73
Chapter Summary and Outlook 73-75
5.1 summarizes the 73-74
5.2 follow-up Looking 74 -75
Reference 75-77
Acknowledgements 77
statement 77-78
resume 78
research in the study period and published academic papers 78
Related dissertations
- The Design and Implementation of Backup and Recovery Subsystem in DaMeng Database
- Memory database accounting background
- Research on Recovery Management in Distributed Transaction Monitor
- Journal Design and Implementation of Cappella Distributed File System
- The Research and Application of Component Mechanism Based on Castle Framework
- Design and Implementation of Backup and Recovery Tool for Distributed File Storage System
- Research and Implementation of Backup/Restore in Embedded System
- SAN storage resource management system - Enhanced backup / restore module design and Implementation
- Transaction workflow management system
- WEB-based real-time network monitoring
- The Service Destroy Tolerant and the None-person-keep-watch Methods in the Disaster Tolerant System
- Building the Enterprise Management System Based on INTERNET
- Study and Implement on Workflow Transaction
- Data replication and backup technology research
- Design and Implementation of TSM Plug-in Based on ASE Database
- Design and Implementation based the OSGI network management system
- Design and Implementation of Data Backup and Recovery Tool
- Memory Database Backup and Recovery Research and Design
- Design and Implementation of a Search Engine Used in Optical Jukebox
- Research and Implementation of Fault Recovery Mechanism in Large-scale Graph Processing System Based on BSP