Re: [HACKERS] why we need both the collector & buffer process

2002-12-25 Thread William.Jiang
Sorry to say that I cannot see which process is used to do checkpoints. I just see two main functions.  pgstat_recvbuffer(): this function is to receive the information from the postgres .this function is the main body of buffer process pgstat_min():this function is to do the job of  getting info

Re: [HACKERS] why we need both the collector & buffer process

2002-12-25 Thread Tom Lane
"=?gb2312?q?William.Jiang?=" <[EMAIL PROTECTED]> writes: >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? It's a buffering issue. Read the di

Re: [HACKERS] why we need both the collector & buffer process

2002-12-25 Thread Bruce Momjian
=?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

[HACKERS] why we need both the collector & buffer process

2002-12-24 Thread William.Jiang
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 yo