Shouldn't flush dirty buffers at shutdown ?

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Shouldn't flush dirty buffers at shutdown ?
Дата
Msg-id NDBBIJLOILGIKBGDINDFMEOCCEAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответы Re: Shouldn't flush dirty buffers at shutdown ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,

While testing vacuum,I noticed that dirty buffers aren't
necessarily written to disk in case of abort.
In addtion they have no guarantee to be flushed before
the shutdown of postmaster. The recent bufmgr changes
seems to have increased the possibility much more than
before.
Certainly it's not bad unless there are indexes. However
if heap data wasn't flushed while corresponding indices
are written to disk,the indices would point to non-existence
heap block. It would be the cause of inconsistency after the
restart of postmaster. Shouldn't there be a mechanism to
flush dirty buffers at(or before) the shutdown of postmaster ?

Comments ?

Regards. 

Hiroshi Inoue
Inoue@tpf.co.jp


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

Предыдущее
От: "Cary O'Brien"
Дата:
Сообщение: Commercializing PostgreSQL: What do you thing?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Shouldn't flush dirty buffers at shutdown ?