Re: [HACKERS] Questions about bufmgr - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Questions about bufmgr
Date
Msg-id 37F9C766.1F753DC7@krs.ru
Whole thread Raw
In response to Questions about bufmgr  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: Questions about bufmgr
Next
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] Planner drops unreferenced tables --- bug, no?