Re: [HACKERS] Increase of buffers usage count by bgwriter

2005-10-27 Thread Tom Lane
I wrote: ITAGAKI Takahiro [EMAIL PROTECTED] writes: I found that bgwriter increments usage count of buffers when it writes the buffers. I feel this behavior is strange, because the behavior of bgwriter will affect buffer management strategy. I think it might be sufficient to not increment

Re: [HACKERS] Increase of buffers usage count by bgwriter

2005-10-26 Thread Tom Lane
ITAGAKI Takahiro [EMAIL PROTECTED] writes: I found that bgwriter increments usage count of buffers when it writes the buffers. I feel this behavior is strange, because the behavior of bgwriter will affect buffer management strategy. Good point --- we probably don't want it to do that. If the

[HACKERS] Increase of buffers usage count by bgwriter

2005-10-25 Thread ITAGAKI Takahiro
Hi Hackers, I found that bgwriter increments usage count of buffers when it writes the buffers. I feel this behavior is strange, because the behavior of bgwriter will affect buffer management strategy. When backends write LRU dirty buffers, they are replaced immediately. However, when bgwriter