Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drt6I-0007I5-Pt for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2017 21:52:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1drt6I-0006qw-63 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2017 21:52:10 +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 1drt6H-0006qm-A8 for pgsql-hackers@postgresql.org; Tue, 12 Sep 2017 21:52:09 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1drt6D-00040e-35 for pgsql-hackers@postgresql.org; Tue, 12 Sep 2017 21:52:06 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1drt6A-0001y7-DA; Tue, 12 Sep 2017 17:52:02 -0400 Date: Tue, 12 Sep 2017 17:52:02 -0400 From: Bruce Momjian To: Andreas Joseph Krogh Cc: Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Clarification in pg10's pgupgrade.html step 10 (upgrading standby servers) Message-ID: <20170912215202.GA6766@momjian.us> References: <20170912171922.GA3705@momjian.us> 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) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Sep 12, 2017 at 08:59:05PM +0200, Andreas Joseph Krogh wrote: > Improvements? > > Thanks, that certainly improves things. > But; I still find the rsync-command in f) confusing; > 1. Why --size-only? From rsync manual: "skip files that match in size", is this > safe?? > 2. Why is old_pgdata in the rsync-command, why is it needed to sync it? If the file exists under the same name, it doesn't need to be checked at all --- it is the same. We don't want to check the file modification time because it will probably be different because of replay delay or clock drift. We could use checksums, but there is no need since there is no way the file contents could be different. > There are many ways to do/configure things it seems, resulting in many ifs and > buts which makes section 10 rather confusing. I really think a complete > example, with absolute paths, would be clarifying. You mean a full rsync command, e.g.: rsync --archive --delete --hard-links --size-only \ /opt/PostgreSQL/9.5 /opt/PostgreSQL/9.6 standby:/opt/PostgreSQL Does that help? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers