Re: AW: AW: AW: AW: WAL-based allocation of XIDs is insecur e - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: AW: AW: AW: AW: WAL-based allocation of XIDs is insecur e
Date
Msg-id 04be01c0a6e4$1bc31d20$4879583f@sectorbase.com
Whole thread Raw
In response to AW: AW: AW: AW: AW: WAL-based allocation of XIDs is ins ecur e  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
List pgsql-hackers
> Before commit or rollback the xlog is not flushed to disk, thus you can loose
> those xlog entries, but the index page might already be on disk because of
> LRU buffer reuse, no ?

No. Buffer page is written to disk *only after corresponding records are flushed
to log* (WAL means Write-Ahead-Log - write log before modifying data pages).

> Another example would be a btree reorg, like adding a level, that is partway 
> through before a crash.

And this is what I hopefully fixed recently with btree runtime recovery.

Vadim




pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: AW: AW: AW: WAL-based allocation of XIDs is ins ecur e
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: AW: AW: AW: WAL-based allocation of XIDs is ins ecur e