RE: strange behaviour (bug)

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: strange behaviour (bug)
Date: 2000-09-12 23:26:17
Message-ID: 000201c01d10$d96793a0$2801007e@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
>
> "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2000-09-12 23:36:23 RE: strange behaviour (bug)
Previous Message The Hermit Hacker 2000-09-12 21:42:14 Re: Status of new relation file naming