backup_label in a crash recovery - Mailing list pgsql-hackers

From Fujii Masao
Subject backup_label in a crash recovery
Date
Msg-id 3f0b79eb0911012251x111092e3r33dbd918389f6519@mail.gmail.com
Whole thread Raw
Responses Re: backup_label in a crash recovery  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Re: backup_label in a crash recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

When a crash occurs before calling pg_stop_backup(),
the subsequent crash recovery causes the FATAL error
and outputs the following HINT message.
   If you are not restoring from a backup, try removing the file
\"%s/backup_label\"."

I wonder why backup_label isn't automatically removed
in normal crash recovery case. Is this for the fail-safe
protection; prevent admin from restoring from a backup
wrongly without creating recovery.conf? Or another?

If that's intentional, a clusterware for shared disk
failover system should remove backup_label whenever
doing failover. Otherwise, when a crash occurs during
online-backup, the failover would fail.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: Syntax for partitioning
Next
From: Toru SHIMOGAKI
Date:
Subject: Remove backup_label automatically