postgres.exe:为什么多个postgres.exe用于单个数据库连接?

时间:2011-07-06 21:16:17

标签: windows postgresql

我正在使用postgresql,当我启动数据库连接(使用PQconnectdb)时,我看到两个新的postgres.exe出现。在我的一些工具中,我看到三个新的postgres.exe出现。

我已经阅读了多个postgres.exe是正常的,因为它使用多进程架构而不是多线程架构,但我想知道为什么有2个(或3个)启动时我连接到数据库。

1 个答案:

答案 0 :(得分:0)

在linux上,我看到3个进程:

  1. postgres: logger process
  2. postgres: writer process
  3. postgres: stats collector process
  4. 每个开放连接还有一个额外的过程。在工作时,Autovacuum可能类似地占用每个工作者一个线程。

    我想在Windows中情况类似。