Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDDo9-0004pD-JN for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 20:22:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDDo8-0007Ns-FJ for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 20:22:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDDo8-0007JO-49 for pgsql-hackers@lists.postgresql.org; Wed, 25 Sep 2019 20:22:40 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iDDo5-0005d8-5f for pgsql-hackers@postgresql.org; Wed, 25 Sep 2019 20:22:39 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id DE6B121C401B; Wed, 25 Sep 2019 23:22:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from mail.postgrespro.ru (cyclops.l.postgrespro.ru [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTP id AFAB821C3FD4; Wed, 25 Sep 2019 23:22:35 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Sep 2019 23:22:35 +0300 From: a.kondratov@postgrespro.ru To: Laurenz Albe , Alvaro Herrera Cc: Paul Guo , Michael Paquier , Thomas Munro , pgsql-hackers , Jimmy Yih , Ashwin Agrawal Subject: Re: Two pg_rewind patches (auto generate recovery conf and ensure clean shutdown) In-Reply-To: <5d8f802d0cc1871ac4bd9450ba98ce8d0626bb58.camel@cybertec.at> References: <20190925174812.GA4916@alvherre.pgsql> <5d8f802d0cc1871ac4bd9450ba98ce8d0626bb58.camel@cybertec.at> Message-ID: <3524fc417c6e25574e2bdedf5f7bf09d@postgrespro.ru> X-Sender: a.kondratov@postgrespro.ru User-Agent: Roundcube Webmail/1.3.8 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-09-25 20:48, Alvaro Herrera wrote: > CC Alexey for reasons that become clear below. > > Another thing in 0002 is that you're adding a "-R" switch to pg_rewind, > but we have another patch in the commitfest using the same switch for a > different purpose. Maybe you guys need to get to an agreement over who > uses the letter :-) > Thank you for mentioning me. I've been monitoring silently this thread and was ready to modify my patch if this one will proceed faster. It seems like it's time :) On 2019-09-25 22:26, Laurenz Albe wrote: > > I believe that -R should be reserved for creating recovery.conf, > similar to pg_basebackup. > > Everything else would be confusing. > > I've been missing pg_rewind -R! > Yes, -R is already used in pg_basebackup for the same functionality, so it seems natural to use it here as well for consistency. I will review options naming in my own patch and update it accordingly. Maybe -w/-W or -a/-A options will be good, since it's about WALs retrieval from archive. Regards -- Alexey P.S. Just noticed that in v12 fullname of -R option in pg_basebackup is still --write-recovery-conf, which is good for a backward compatibility, but looks a little bit awkward, since recovery.conf doesn't exist already, doesn't it? However, one may read it as 'write-recovery-configuration', then it seems fine.