Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-10-02 Thread Fujii Masao
On Wed, Oct 3, 2012 at 3:11 AM, Simon Riggs wrote: > On 2 October 2012 19:06, Fujii Masao wrote: >> On Sat, Aug 11, 2012 at 2:19 AM, Fujii Masao wrote: >>> On Thu, Aug 9, 2012 at 8:08 AM, Simon Riggs wrote: On 29 July 2012 16:01, Fujii Masao wrote: > Attached patch changes the st

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-10-02 Thread Simon Riggs
On 2 October 2012 19:06, Fujii Masao wrote: > On Sat, Aug 11, 2012 at 2:19 AM, Fujii Masao wrote: >> On Thu, Aug 9, 2012 at 8:08 AM, Simon Riggs wrote: >>> On 29 July 2012 16:01, Fujii Masao wrote: >>> Attached patch changes the startup process so that it creates .done file whenever W

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-10-02 Thread Fujii Masao
On Sat, Aug 11, 2012 at 2:19 AM, Fujii Masao wrote: > On Thu, Aug 9, 2012 at 8:08 AM, Simon Riggs wrote: >> On 29 July 2012 16:01, Fujii Masao wrote: >> >>> Attached patch changes the startup process so that it creates .done file >>> whenever WAL file is successfully restored, whether archive mo

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-08-11 Thread Simon Riggs
On 10 August 2012 18:19, Fujii Masao wrote: >> I've committed the simplified version for 9.2, as well as adding >> support for streaming which you seem to have missed out. > > If the streaming case really must be covered, the fix should be backported to > 9.1 and 9.0? Because there is the same "p

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-08-10 Thread Fujii Masao
On Thu, Aug 9, 2012 at 8:08 AM, Simon Riggs wrote: > On 29 July 2012 16:01, Fujii Masao wrote: > >> Attached patch changes the startup process so that it creates .done file >> whenever WAL file is successfully restored, whether archive mode is >> enabled or not. The restored WAL files will not be

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-08-10 Thread Fujii Masao
On Thu, Aug 9, 2012 at 11:24 PM, Simon Riggs wrote: > On 9 August 2012 00:08, Simon Riggs wrote: > >> Will look at the refactored version tomorrow. > > > Rather than implement the minimal patch onto HEAD, I've written a > refactored patch. [attached] > This fixes the bugs discussed here, though a

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-08-09 Thread Simon Riggs
On 9 August 2012 00:08, Simon Riggs wrote: > Will look at the refactored version tomorrow. Rather than implement the minimal patch onto HEAD, I've written a refactored patch. [attached] This fixes the bugs discussed here, though allows for multiple archive statuses, rather than just two, as wel

Re: [HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-08-08 Thread Simon Riggs
On 29 July 2012 16:01, Fujii Masao wrote: > Attached patch changes the startup process so that it creates .done file > whenever WAL file is successfully restored, whether archive mode is > enabled or not. The restored WAL files will not be archived again because > of .done file. The proposed pat

[HACKERS] Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover

2012-07-29 Thread Fujii Masao
On Tue, Jun 5, 2012 at 3:37 PM, Noah Misch wrote: > On Fri, Mar 23, 2012 at 11:03:27PM +0900, Fujii Masao wrote: >> (2) WAL files which were restored from the archive >> >> In 9.1 or before, the restored WAL files don't remain after failover >> because they are always restored onto the temporary f