计算机与现代化 ›› 2013, Vol. 1 ›› Issue (9): 210-214.doi: 10.3969/j.issn.1006-2475.2013.09.052

• 应用与开发 • 上一篇    下一篇

PostgreSQL存储引擎多线程化的研究与实现

任宏萍,黄 晟   

  1. 华中科技大学软件学院,湖北 武汉 430074
  • 收稿日期:2013-04-07 修回日期:1900-01-01 出版日期:2013-09-17 发布日期:2013-09-17

Research and Implementation of Multi-threaded PostgreSQL Storage Engine

REN Hong-ping, HUANG Sheng   

  1. School of Software Engineering, Huazhong University of Science and Technology, Wuhan 430074, China
  • Received:2013-04-07 Revised:1900-01-01 Online:2013-09-17 Published:2013-09-17

摘要: 为解决PostgreSQL数据库系统启动很多进程占用大量系统资源的问题,提出一种改进PostgreSQL存储引擎的方法,即采用线程池,使用主线程唤醒线程池中的子线程方法替代PostgreSQL原有的多进程通讯机制,从而解决PostgreSQL数据库大量进程占用大量系统资源的弊端。实验表明PostgreSQL存储引擎的线程池的改进方法,能够很好地解决系统资源占用的问题,提高了数据库的执行效率。

关键词: PostgreSQL, 数据库性能测试, 数据库性能优化, 多线程优化

Abstract: In order to solve the problem that the PostgreSQL starts many processes which takes up a lot of system resources, this paper presents an improved method for PostgreSQL storage engine, that is, using the thread pool wake-up call to replace the original PostgreSQL multi-process communication mechanism, so as to solve the problem that the PostgreSQL takes up a lot of system resources while starting large number of processes. Experimental results show that the improved method of PostgreSQL storage engine thread pool can be a good solution to the problems of system resources and improve the implementation efficiency of database.

Key words: PostgreSQL, database performance test, database performance optimization, multi-threaded optimization

中图分类号: