Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby
Date: 2015-12-21 07:26:25
Message-ID: CAB7nPqRhuYuVjmEEAR=iVBD-rWu42jb0+2gsm4KHJjpC8Zwoww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Sun, Dec 20, 2015 at 10:14 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> Speaking of which, this patch was registered in this CF, I am moving
> it to the next as a bug fix.

I found a stupid bug in my previous patch: when issuing XLOG_SWITCH it
is possible that the return LSN pointer is on the new segment that has
been forcibly archived if RequestXLogSwitch is called multiple times
and that subsequent calls are not necessary. Patch updated.
--
Michael

Attachment Content-Type Size
archive-timeout-v5.patch binary/octet-stream 4.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Clough 2015-12-21 10:44:02 Re: BUG #13770: Extending recovery_min_apply_delay on Standby causes it to be unavailable for a while
Previous Message Emma Saurus 2015-12-21 05:47:09 Fwd: Cannot log in as newly created user EXTRA INFO

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-12-21 07:45:21 Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.
Previous Message Chapman Flack 2015-12-21 07:00:53 Re: Threads in PostgreSQL