Re: pg_standby -l might destory the archived file - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_standby -l might destory the archived file
Date
Msg-id 3f0b79eb0906011739i28361675q4e88c0648feb34e3@mail.gmail.com
Whole thread Raw
In response to Re: pg_standby -l might destory the archived file  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_standby -l might destory the archived file
List pgsql-hackers
Hi,

On Mon, Jun 1, 2009 at 11:41 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
>> pg_standby can use ln command to restore an archived file,
>> which might destroy the archived file as follows.
>
> Does it matter?  pg_standby's source area wouldn't normally be an
> "archive" in the real sense of the word, it's just a temporary staging
> area between master and slave.

If so, it might be deleted after triggering the warm-standby. But, we cannot
remove it because the latest xlog file which is required for normal recovery
might exist in it. This is another undesirable scenario. Is this problem?

Regards,

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


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: User-facing aspects of serializable transactions
Next
From: Robert Haas
Date:
Subject: Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data