RE: strange behaviour (bug)

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: strange behaviour (bug)
Дата
Msg-id 000201c01d10$d96793a0$2801007e@tpf.co.jp
обсуждение исходный текст
Ответ на Re: strange behaviour (bug)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> 
> "Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
> > If a B-tree page A was splitted to the page A(changed) and a page B but
> > the transaction was rolled back,the pages A,B would not be written to
> > disc and the followings could occur for example.
> 
> Yes.  I have been thinking that it's a mistake not to write changed
> pages to disk at transaction abort, because that just makes for a longer
> window where a system crash might leave you with corrupted indexes.
> I don't think fsync is really essential, but leaving the pages unwritten
> in shared memory is bad.  (For example, if we next shut down the
> postmaster, then the pages will NEVER get written.)
> 
> Skipping the update is a bit silly anyway; we aren't really that
> concerned about optimizing performance of abort, are we?
>

Probably WAL would solve this phenomenon by rolling
back the content of disc and shared buffer in reality.
However if 7.0.x would be released we had better change 
bufmgr IMHO.

Regards.

Hiroshi Inoue


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: Status of new relation file naming
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: [COMMITTERS] pgsql/src/interfaces/jdbc/org/postgresql/jdbc1 (DatabaseMetaData.java)