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 1iDV7j-0004yM-1K for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Sep 2019 14:52:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDV7h-0004kZ-SN for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Sep 2019 14:52:01 +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 1iDV7h-0004kS-CZ for pgsql-hackers@lists.postgresql.org; Thu, 26 Sep 2019 14:52:01 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iDV7e-0002Td-Vk for pgsql-hackers@postgresql.org; Thu, 26 Sep 2019 14:52:00 +0000 Received: by mail-io1-xd35.google.com with SMTP id q10so7355630iop.2 for ; Thu, 26 Sep 2019 07:51:58 -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=d1qo6U08rVgMKdhC5nPPglLhppdepVG76a7g8GJrhUE=; b=GGSWDL4aV3DAQ+HSL+3zxh4MzzRnEm8TtrBR23iqB78WOhGV20yOxPc5QGgo/cp28b UTSysNzFneJc6ZyZUty2m0pQw5SIv3MlAjY4pKNlQVOh+R2Z9VNfdZtOC+6gOXjaQcKa 5O2EQlbRjYb2NkjfFDQXmkQ02+tTp3piJCMWA2BFbF8CITqjaJ1cjAEqPH0qW/kyNGK/ oFPIkzkmBF06Wy9bYIpkhEKQLUmR2BW6ywHHi2MVUJyLUN87BhwMNG8P20uJ+9P7JTQB iQwUBSEsFwBJx13m8Hy2GycNm8y0xN7RGZr0YtBu+MhAcQFVcyGms94GiO31A4l39pZG jEcQ== 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=d1qo6U08rVgMKdhC5nPPglLhppdepVG76a7g8GJrhUE=; b=q9/acgPCX0Kwol02quOaJcYJ1w/iwrWiBnzaXyAXmzClZAil49h0iz39xBKmn5TsvP S+FVsaXjzBTc6bhb+k47uD8t21s0c5QCa7LvG4bbI3hOe0ciehjhmhcm1Etq6qYs8Ebb HCVvQwPrQPEi1d8yUFXFMMs1JdM47QcBqaoLP8d4g7cYy0RHhc26Njb6+9WeZmZjkR01 2mWiUW+lGfsI8WxsuNhljjsZMKY3zlVh0b5F4wMNakkCDyzfRnq63d/9tKTWzPX26RWD Cl85z8orxPtlgbXYxtG+6pdY7M8sLOX1uAd2GQybrXmJPp/mcggI1juMJvdcna2uXvWG B3OA== X-Gm-Message-State: APjAAAXkk7hkE4gwOrifMzys1WKpPIhluRc/HbLi2AfX6CgVBz7yVZpf q7gOOwwJneYtRLBGXXZtAFQZlg== X-Google-Smtp-Source: APXvYqwaHQtgDHIgg2TOXvq4AATVJ3pksyW4/w0Xo4088KCS9Pm/izDAQpvL2S1CtXutbh4zZaqdog== X-Received: by 2002:a92:b752:: with SMTP id c18mr2887554ilm.42.1569509518189; Thu, 26 Sep 2019 07:51:58 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([199.229.249.165]) by smtp.gmail.com with ESMTPSA id t16sm1054156iol.12.2019.09.26.07.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 07:51:57 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1C8711206A9; Thu, 26 Sep 2019 11:51:54 -0300 (-03) Date: Thu, 26 Sep 2019 11:51:54 -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: <20190926145154.GA22406@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 > Thanks. I've updated the reset two patches and attached as v8. Great, thanks. > Note in the 2nd patch, the long option is changed as below. Both the option > and description > now seems to be more concise since we want db state as either DB_SHUTDOWNED > or > DB_SHUTDOWNED_IN_RECOVERY. > > "-s, --no-ensure-shutdowned do not auto-fix unclean shutdown" Note that "shutdowned" is incorrect English; we've let it live in the code because it's not user-visible, but we should certainly not immortalize it where it becomes so. I suppose "--no-ensure-shutdown" is okay, although I think some may prefer "--no-ensure-shut-down". Opinions from native speakers would be welcome. Also, let's expand "auto-fix" to "automatically fix" (or "repair" if there's room in the line? Not sure. Can be bikeshedded to death I guess.) Secondarily, I see no reason to test connstr_source rather than just "conn" in the other patch; doing it the other way is more natural, since it's that thing that's tested as an argument. pg_rewind.c: Please put the new #include line keeping the alphabetical order. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services