Re: backup_label in a crash recovery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: backup_label in a crash recovery
Date: 2009-11-02 14:24:54
Message-ID: 24115.1257171894@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:
> I wonder why backup_label isn't automatically removed
> in normal crash recovery case.

Removing it automatically could be catastrophic if done incorrectly, no?

> If that's intentional, a clusterware for shared disk
> failover system should remove backup_label whenever
> doing failover.

It would be no less catastrophic if done incorrectly from outside the
postmaster; see for example the problems people have had historically
with startup scripts that think they should remove postmaster.pid.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-11-02 14:41:49 Re: Error on compile for Windows
Previous Message Robert Haas 2009-11-02 14:11:59 Re: Architecture of walreceiver (Streaming Replication)