HI,
Use this snapshot the problem fixed, thanks Heikki and Andres's help.
Use correctly-sized buffer when zero-filling a WAL file.
I mixed up BLCKSZ and XLOG_BLCKSZ when I changed the way the buffer is
allocated a couple of weeks ago. With the default settings, they are both
8k, but they can be changed at compile-time.
--
公益是一辈子的事,I'm Digoal,Just Do It.
在 2014-04-16 07:28:52,"Heikki Linnakangas" <hlinnakangas@vmware.com> 写道:
>On 04/16/2014 02:17 PM, 德哥 wrote:
>> LOG: write() in XLogFileInit returned 40960: Success
>
>Oh, that's interesting. Have you tweaked BLCKSZ or XLOG_BLCKSZ? If you
>have, try with a fresh checkout - I just fixed a bug in that code where
>I had used BLCKSZ instead of XLOG_BLCKSZ in the allocation of the
>buffer. They're the same by default, but if you've changed them, that
>might be it.
>
>- Heikki