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 1iDwID-00089t-Eb for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2019 19:52: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 1iDwIB-0001v3-2I for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2019 19:52:39 +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 1iDwIA-0001ur-HE for pgsql-hackers@lists.postgresql.org; Fri, 27 Sep 2019 19:52:38 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iDwI7-0001N4-S0 for pgsql-hackers@postgresql.org; Fri, 27 Sep 2019 19:52:37 +0000 Received: by mail-qk1-x741.google.com with SMTP id 4so2953619qki.6 for ; Fri, 27 Sep 2019 12:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=J/U20qlyfG6LRgjavRO0O6Wcb8CPeYOiXRp1JTEAokA=; b=Mhk77DHBt1Ms8Ro74RD9nvFj39tvG6Z7ukzeJBjKBmB2nDAWVi8bZbWUGWLGy24Obw RJU2MAbAQH4Gg1MLjrRBEya7GGGcsb1aNTMmkPZSX1KkCOhtoMorcvzIcO0DU8FrX2AF KyA0EU/b1M0vXnsnop90n38mRu4UpL1GupqI1QROLt2F4NyurbWw7S0qi3vVk7ttH51T pGF5Ht7Gd6VcP2591c3qaYGm+OJw+u91MDZ9S5Nt+AAhslQtNY8tYIeGCD6RrQCMWfKj xFT/Q0xj1/g9/t3vk37pQMZRYXFUwEyh/HK/z3GI/N/YoAOkywrwjrc7CVRWcnNVHbSk 84KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=J/U20qlyfG6LRgjavRO0O6Wcb8CPeYOiXRp1JTEAokA=; b=RHigXrtgcrSlTduX/30thAW8Ciz1F88U6hBnvatAuSCkpp+D7kE8U5RzP3ybyJ8kYM yFndHBuHxePNJ3tQ3DpAy53YfangI9x3ryymMxN/qQopT/jn2mXUdqE/Yf0VZ5d+2Q5o 4blLek6yOtd8H3Zj6yMuvnCXC6rbtluwPlZPIq8uf/d+r7NHopt4J0e0YSEh7NYNOlNs JHEugNNFd3To7InXwy4qksBU6UWPu+b0beBWordocyAdJxm7sIgB4muLM3BSrFI/Au5k gtNuWSMVBQGL5kWY+FBGlOQw3MzBhlnwi1kgiNcLJz6GOPsSdFYPuC5xt6rRQJPjV9XH IFwQ== X-Gm-Message-State: APjAAAWSQwU5k95HVWc18EnYnye5rG2EEXURDgM8gKkmCkJy+0IQTVKc 8A6hD0SFEdoPyzCwXTILplPLtw== X-Google-Smtp-Source: APXvYqzzmlDfHD7J+qQDAGz7qpstOhwffkcmgE3hG5FKRANlqb79pawtTUa/T9G85cUWN2V48g7uqA== X-Received: by 2002:a37:a545:: with SMTP id o66mr6462997qke.96.1569613954773; Fri, 27 Sep 2019 12:52:34 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.99.215]) by smtp.gmail.com with ESMTPSA id i30sm3130944qte.27.2019.09.27.12.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 12:52:34 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 81D00120DD8; Fri, 27 Sep 2019 16:52:15 -0300 (-03) Date: Fri, 27 Sep 2019 16:52:15 -0300 From: Alvaro Herrera To: Paul Guo Cc: Michael Paquier , Thomas Munro , pgsql-hackers , Jimmy Yih , Ashwin Agrawal , Alexey Kondratov Subject: Re: Two pg_rewind patches (auto generate recovery conf and ensure clean shutdown) Message-ID: <20190927195215.GA8650@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.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-27, Paul Guo wrote: > I'm using --no-ensure-shutdown in the new version unless there are better > suggestions. That sounds sufficiently good. I pushed this patch, after fixing a few smallish problems, such as an assertion failure because of the terminating \n in the error message when "postgres --single" fails (which I tested by introducing a typo in the command). I also removed the short option, because I doubt that this option is useful enough to warrant using up such an important shorthand (Maybe if it had been -\ or -% or -& I would have let it through, since I doubt anybody would have wanted to use those for anything else). But if somebody disagrees, they can send a patch to restore it, and we can then discuss the merits of individual chars to use. I also added quotes to DEVNULL, because we do that everywhere. Maybe there exists a system somewhere that requires this ... !!?? Finally, I split out the command in the error message in case it fails. Thanks. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services