Re: Data loss, vacuum, transaction wrap-around - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Data loss, vacuum, transaction wrap-around
Date
Msg-id 6391.1108784131@sss.pgh.pa.us
Whole thread Raw
In response to Re: Data loss, vacuum, transaction wrap-around  (pgsql@mohawksoft.com)
Responses Re: Data loss, vacuum, transaction wrap-around
Re: Data loss, vacuum, transaction wrap-around
List pgsql-hackers
pgsql@mohawksoft.com writes:
> I think there should be a 100% no data loss fail safe.

Possibly we need to recalibrate our expectations here.  The current
situation is that PostgreSQL will not lose data if:
1. Your disk drive doesn't screw up (eg, lie about write complete,   or just plain die on you).2. Your kernel and
filesystemdon't screw up.3. You follow the instructions about routine vacuuming.4. You don't hit any bugs that we don't
knowabout.
 

I agree that it's a nice idea to be able to eliminate assumption #3 from
our list of gotchas, but the big picture is that it's hard to believe
that doing this will make for a quantum jump in the overall level of
reliability.  I think I listed the risks in roughly the right order of
severity ...

I'm willing to fix this for 8.1 (and am already in process of drafting a
patch), especially since it ties into some other known problems such as
the pg_pwd/pg_group files not being properly reconstructed after PITR
recovery.  But I think that a "Chinese fire drill" is not called for,
and backpatching a significant but poorly tested change falls into that
category IMHO.
        regards, tom lane


pgsql-hackers by date:

Previous
From: lsunley@mb.sympatico.ca
Date:
Subject: Re: Data loss, vacuum, transaction wrap-around
Next
From: Bruce Momjian
Date:
Subject: Re: UTF8 or Unicode