Skip site navigation (1) Skip section navigation (2)

backup_label in a crash recovery

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: backup_label in a crash recovery
Date: 2009-11-02 06:51:29
Message-ID: 3f0b79eb0911012251x111092e3r33dbd918389f6519@mail.gmail.com (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-hackers by date

Next:From: Simon RiggsDate: 2009-11-02 07:38:56
Subject: Re: operator exclusion constraints
Previous:From: Itagaki TakahiroDate: 2009-11-02 06:50:45
Subject: Re: Syntax for partitioning

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group