Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avkkF-0008D8-4i for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Apr 2016 12:08:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avkkE-0007qv-N7 for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Apr 2016 12:08:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avkkE-0007qI-18 for pgsql-bugs@postgresql.org; Thu, 28 Apr 2016 12:08:34 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avkkA-0004qi-3a for pgsql-bugs@postgresql.org; Thu, 28 Apr 2016 12:08:32 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.103.176.74]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 3661E400CAB; Thu, 28 Apr 2016 05:08:24 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 8C04653F; Thu, 28 Apr 2016 08:28:50 -0300 (CLST) Date: Thu, 28 Apr 2016 08:28:50 -0300 From: Alvaro Herrera To: Michael Paquier Cc: John Lumby , Julien Rouhaud , pgsql bugs Subject: Re: BUG #14109: pg_rewind fails to update target control file in one scenario Message-ID: <20160428112850.GA71376@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier wrote: > On Wed, Apr 27, 2016 at 9:47 AM, Michael Paquier > wrote: > > Replication slots are perfectly able to retain WAL segments from a > > prior timeline, so I am not sure that this would be much a gain. > > Or to put in in other words, a slot that activates automatically > itself at promotion to retain WAL from the previous timeline would be > interesting for pg_rewind, but the use case we have here is only > pg_rewind. so it seems a bit narrow to bother modifying the core core > to add this support in the replication slot code. And this can be > solved lightly with an archive. Thoughts from others are welcome. Sounds to me like it should be enough to document (in pg_rewind's page) that activating a slot prior to the promotion. Maybe we could have "pg_ctl promote" have an option to create a slot, to make this simpler? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs