Re: beta testing version

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема Re: beta testing version
Дата
Msg-id Pine.BSO.4.10.10012010143300.5424-100000@spider.pilosoft.com
обсуждение исходный текст
Ответ на Re: beta testing version  (ncm@zembu.com (Nathan Myers))
Ответы Re: beta testing version  (ncm@zembu.com (Nathan Myers))
Re: beta testing version  (Ian Lance Taylor <ian@airs.com>)
Список pgsql-hackers
On Thu, 30 Nov 2000, Nathan Myers wrote:

> After a power outage on an active database, you may have corruption
> at low levels of the system, and unless you have enormous redundancy
> (and actually use it to verify everything) the corruption may go 
> undetected and result in (subtly) wrong answers at any future time.
Nathan, why are you so hostile against postgres? Is there an ax to grind?

The conditions under which WAL will completely recover your database:
1) OS guarantees complete ordering of fsync()'d writes. (i.e. having two
blocks A and B, A is fsync'd before B, it could NOT happen that B is on
disk but A is not).
2) on boot recovery, OS must not corrupt anything that was fsync'd.

Rule 1) is met by all unixish OSes in existance. Rule 2 is met by some
filesystems, such as reiserfs, tux2, and softupdates. 

> The logging in 7.1 protects transactions against many sources of 
> database crash, but not necessarily against OS crash, and certainly
> not against power failure.  (You might get lucky, or you might just 
> think you were lucky.)  This is the same as for most databases; an
> embedded database that talks directly to the hardware might be able
> to do better.  



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: [SQL] Rules with Conditions: Bug, or Misunderstanding
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Operators and commutation