"William.Jiang" <jiang_sir@yahoo.com.cn> 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 discussion in the pghackers archives
for details.
regards, tom lane