Re: bufmgr and smgr don't talk to each other, apparently

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bufmgr and smgr don't talk to each other, apparently
Дата
Msg-id 9689.964886366@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: bufmgr and smgr don't talk to each other, apparently  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-hackers
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> (at least since 6.3): bufmgr.c expects that I/O errors will result in
>> an SM_FAIL return code from the smgr.c routines, but smgr.c does no
>> such thing: it does elog(ERROR) if it sees a failure.  All of the

> except smgropen().

Right.  I'm mainly looking at the block read/write/flush calls,
which have a lot of now-useless error recovery code after them.

> I also prefer the latter. Even though smgr returns SM_FAIL,md stuff
> already calls elog(ERROR) in many places.

Good point, and the fd.c level may have some elogs too...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: Postgres update
Следующее
От: Tom Lane
Дата:
Сообщение: Anyone care about type "filename" ?