Skip site navigation (1) Skip section navigation (2)

Re: why we need both the collector & buffer process

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: William(dot)Jiang <jiang_sir(at)yahoo(dot)com(dot)cn>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: why we need both the collector & buffer process
Date: 2002-12-25 16:58:05
Message-ID: 200212251658.gBPGw5919069@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
=?gb2312?q?William.Jiang?= wrote:
> 
> hi,all hackers of postgres
> 
>     when postmaster start as a service . another two
>     processes(collector & buffer ) start their work at the same
>     time.
> 
>    I have read the code and I am wondering why we need two
>    processes to do the work. I think one process can work as
>    well. Are there something special you considered when you
>    developed this feature?

One collects statistics for the pg_stat tables, and the other does
checkpoints.  They are different functions.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: Jeroen T. VermeulenDate: 2002-12-25 19:30:53
Subject: GBorg feature requests
Previous:From: postgresqlDate: 2002-12-25 09:22:10
Subject: about the sql conformance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group