Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw6p3-0000yo-HC for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Apr 2016 11:43:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aw6p3-0005fq-3v for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Apr 2016 11:43:01 +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 1aw6oP-0004xp-VI for pgsql-bugs@postgresql.org; Fri, 29 Apr 2016 11:42:22 +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 1aw6oM-0000hy-RV for pgsql-bugs@postgresql.org; Fri, 29 Apr 2016 11:42:20 +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 [200.104.94.102]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1424D4005D2; Fri, 29 Apr 2016 04:42:18 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 44E644FF; Fri, 29 Apr 2016 08:42:16 -0300 (CLST) Date: Fri, 29 Apr 2016 08:42:16 -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: <20160429114216.GA126732@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 Thu, Apr 28, 2016 at 8:28 PM, Alvaro Herrera > wrote: > > 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? > > That would be actually creating a slot before the last common > checkpoint before promotion, which is a bit more tricky to evaluate. > With luck, perhaps both of them would be on the same segment, but > there is no way to be sure about that... It seems to me that what we > are looking for here is a way to tell through > pg_create_physical_replication_slot to reserve WAL from a position > that caller has decided. Well, that sounds like just a SMOP, doesn't it? -- Á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