Re: why we need both the collector & buffer process - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: why we need both the collector & buffer process
Date
Msg-id 200212251658.gBPGw5919069@candle.pha.pa.us
Whole thread Raw
In response to why we need both the collector & buffer process  ("William.Jiang" <jiang_sir@yahoo.com.cn>)
Responses Re: why we need both the collector & buffer process
List pgsql-hackers
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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: postgresql
Date:
Subject: about the sql conformance
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: GBorg feature requests