Re: random write in xlog?
От | Jeff Janes |
---|---|
Тема | Re: random write in xlog? |
Дата | |
Msg-id | AANLkTikzFFQoeovVRzA-AyozczNzmhTUKA6-pwcNgWCG@mail.gmail.com обсуждение исходный текст |
Ответ на | random write in xlog? (flyusa2010 fly <flyusa2010@gmail.com>) |
Ответы |
XLog vs SSD [Was: Re: random write in xlog?]
|
Список | pgsql-hackers |
On Tue, Dec 7, 2010 at 2:06 PM, flyusa2010 fly <flyusa2010@gmail.com> wrote: > Hi, folks, > I trace the running postgres, and I found that there are some randoms writes > in xlog files! > To my impression, log file writing is always sequential, how come random > writes happen? > Thanks in advance! Just because it does an lseek doesn't mean it is "random". Anyway, the writes are logically sequentially, but not physically. If I remember correctly, it always writes out full blocks, even if the last part of the block has not yet been filled with new data. When the remainder gets filled, it then writes out the full block again, both the already written and the new part. Cheers, Jeff
В списке pgsql-hackers по дате отправления: