PostgreSQL的进程结构

本文详细解析了PostgreSQL数据库管理系统中各进程的作用及相互关系,包括Postmaster、SysLogger、Checkpointer、BgWriter、WalWriter、AutoVacuum、PgArch和PgStat等关键组件的功能,帮助开发者深入理解PostgreSQL的多进程架构。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

PostgreSQL是多程架构的数据库管理系统,在启用SysLogger和PgArch功能后,其进程种类如图1:

                            图1

下面简单说明一下图1中各进程:

  • /home/pg/db/bin/postgres -D data:  在PostgreSQL源码中称为Postmaster,它是所有其他进程的父进程;
  • postgres: logger process:  在PostgreSQL中称为SysLogger(8.0),用于整个系统的日志输出
  • postgres: checkpointer process:  在PostgreSQL中称为Checkpointer(9.2),用于处理checkpoints;
  • postgres: writer process:  在PostgreSQL中称为BgWriter,用于将脏页刷出到磁盘;
  • postgres: wal writer process:  在PostgreSQL中称为WalWriter(8.3),处理预写日志输出
  • postgres: autovacuum launcher process:   在PostgreSQL中称为AutoVacuum(8.1),用于系统的自动清理
  • postgres: archiver process:  在PostgreSQL中称为PgArch,用于预写日志归档;
  • postgres: stats collector process:  在PostgreSQL中称为PgStat,用于统计数据收集 

 

 

                        图2

 

 

图2来源:

http://wiki.postgresql.org/wiki/Pgsrcstructure 

转载于:https://www.cnblogs.com/rtems/p/3310305.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值