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.92) (envelope-from ) id 1jA2QU-0004Mi-8A for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2020 02:09:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jA2QR-0003ON-M3 for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2020 02:09:19 +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 1jA2QQ-0003OF-Rs for pgsql-hackers@lists.postgresql.org; Fri, 06 Mar 2020 02:09:19 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jA2QJ-0005C0-Me for pgsql-hackers@postgresql.org; Fri, 06 Mar 2020 02:09:17 +0000 Received: by mail-qt1-x842.google.com with SMTP id r6so667411qtt.9 for ; Thu, 05 Mar 2020 18:09:11 -0800 (PST) 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=N25vMzHtuIzcGWz7lMVEKzatNhhvlPk0td+9VhWc0K4=; b=hcza04dhkH8jCkNobLCRMSXRvylD2TADXGGBjJrjDQBr//PryqoladSKUoEFt07s8f McqvjCAXhSLzw4S5OahnjIiWkzn3G5J3VCXa555DMKycjL2vryaVfN9UDel6VHFZRj0k vQySWYu0WsLhXU7BNS1BGutbunn8J00cO78PeAlKxecLBfGEqtCMSbDjZFCeGvXaVoPu keHPQCj81Prk9bHlneXSOn/xHXfMYCNDnDAlzV0GbxxY2Le2FXAzYwUUIBrExboExqVZ PTBocfNZkb0BGpdcocW5zGL6AftxQZ6E0MKAapRQp1OEuAx2rvKXSllQvm3MhRLkEdLR hinA== 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=N25vMzHtuIzcGWz7lMVEKzatNhhvlPk0td+9VhWc0K4=; b=O2jyp2hzmsN3BaF8xYcshmDXWdTDyoJRMcFdwkZ1qQE3uWwCu67O80DLTvYFd9MC1q rkrQiVjAai9D4gE/1txiHSGbi2Wb+WtI6XRTqBYMylhjS4VWg5tGvwT7pEjVeMxzHgL8 +qG4QPstWYADtK0b5ASTvVf3Fmte3wUIqjOgJ1QFSH7u1+EHpqgovpj0DxCrBkMz7hIv gWJY+YJgQHuJdVQJsiWyECDnCtXKsuyMb4WPs9ShXCSpHAl2sx5LtQimc6BI2yXAPnKy VCtSfWajbCG5HRK4gd/gI9Xy54hfCVskWD7eBa0cdFj4hGsemgf6OPcHl0MICXpWBkDi 33AQ== X-Gm-Message-State: ANhLgQ26Sp2d98dfkIBuof3MP+31lU1h1r7EWjj2NfAB8Yy4we5zCh4s 9ZisYHRBsyP7faf9FxluypsY2g== X-Google-Smtp-Source: ADFU+vsNzXcYA4Fphzn1MEJ3D2vNWG8Cyh5lnmIYhAUeddZ2GY2yY2PYnTd9NQzgEfoiC0i5ttsPhQ== X-Received: by 2002:ac8:6048:: with SMTP id k8mr1051761qtm.53.1583460550642; Thu, 05 Mar 2020 18:09:10 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id x93sm8871546qte.60.2020.03.05.18.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 18:09:08 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 73F733007D2; Thu, 5 Mar 2020 23:09:06 -0300 (-03) Date: Thu, 5 Mar 2020 23:09:06 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Alexey Kondratov , Alexander Korotkov , Liudmila Mantrova , Thomas Munro , Andrey Borodin , David Steele , Andres Freund , PostgreSQL-development , Dmitry Dolgov <9erthalion6@gmail.com>, vladimirlesk@yandex-team.ru, dsarafan@yandex-team.ru Subject: Re: [Patch] pg_rewind: options to use restore_command from recovery.conf or command line Message-ID: <20200306020906.GA11931@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200306012120.GD52814@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-06, Michael Paquier wrote: > I was also thinking to split the patch into two pieces: > - Introduction of common/archive.c and common/fe_archive.c (the former > is used by xlogarchive.c and the latter only by pg_rewind). The > latter is dead code without the second patch, but this would validate > the MSVC build with the buildfarm. > - The pg_rewind pieces with the new option. Hmm, doesn't the CF bot already validate the MSVC build? Splitting in two seems all right, but I think one commit that introduces dead code is not great. It may make more sense to have one commit for common/archive.c, and a second commit that does fe_archive plus pg_rewind changes ... If that doesn't work for whatever reason, then doing a single commit may be preferrable. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services