Re: transaction lost when delete clog file after normal shutdown - Mailing list pgsql-hackers

From Tom Lane
Subject Re: transaction lost when delete clog file after normal shutdown
Date
Msg-id 1274894.1734936617@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: Re: transaction lost when delete clog file after normal shutdown  ("章晨曦@易景科技" <zhangchenxi@halodbtech.com>)
List pgsql-hackers
"=?utf-8?B?56ug5pmo5pumQOaYk+aZr+enkeaKgA==?=" <zhangchenxi@halodbtech.com> writes:
> And after a while, a system error occurred and unfortunately, just caused clog file corrupted.  
> So we need to restore the database from backup just because of the tiny clog file corrupted.

I'm not seeing a large difference between this complaint
and whining because Unix doesn't have a way to recover from
"sudo rm -rf /".  clog is critical data: if you mess with
it you will destroy your database.  It is not the only
critical data in the system, either.

> Is there any chance to improve this?

We're not in the business of building doubly- or triply-redundant
storage.  The cost/benefit just isn't attractive for very many people.
If you don't trust your hardware, you can put your storage on RAID,
or replicate the database, etc.  If you have a DBA who thinks it's
cool to remove files they don't understand the purpose of, the answer
is to fire that DBA.

            regards, tom lane



pgsql-hackers by date:

Previous
From: wenhui qiu
Date:
Subject: Re: PoC: history of recent vacuum/checkpoint runs (using new hooks)
Next
From: David Rowley
Date:
Subject: Re: wrong comments in ClassifyUtilityCommandAsReadOnly