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 3f0b79eb0906011814v1fa01606xe23fdba694fd0ed4@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 Tue, Jun 2, 2009 at 10:00 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
>> 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?
>
> What recovery?  In the problem case you're positing, the slave server
> has executed a checkpoint and come up live.  It's never going to be
> interested in the old xlog again.

Yes, the old xlog itself is not used again. But, the *old file* might
be recycled
and used later. The case that I'm looking at is that the symlink to a temporary
area is recycled. Am I missing something?

Regards,

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: dblink patches for comment
Next
From: Tom Lane
Date:
Subject: Re: dblink patches for comment