Hiroshi Inoue wrote:
>
> I'm trying to fix a TODO item
> * spinlock stuck problem when elog(FATAL) and elog(ERROR) inside bufmgr
...
> And I have other questions which are irrevalent to the TODO item.
>
> 1. Why does BufferReplace() call smgrflush()(not smgrwrite()) ?
> Are there any reasons that we couldn't postpone fsync() until
> commit ?
>
> 2. Why does FlushRelationBuffers() call FlushBuffer() ?
> Isn't it a overhead to call fsync() per page ?
Pleeease don't touch bufmgr for the moment - it will be
changed due to WAL implementation. Currently I do data
base startup/shutdown stuff but will switch to bufmgr
in 1-2 days.
Vadim