Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsx5Y-0007oK-GY for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Sep 2017 20:19:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsx5Y-00011U-38 for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Sep 2017 20:19:48 +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 1dsx3p-0005Vv-3u for pgsql-hackers@postgresql.org; Fri, 15 Sep 2017 20:18:01 +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 1dsx3h-0005cf-Qp for pgsql-hackers@postgresql.org; Fri, 15 Sep 2017 20:17:59 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dsx3g-0003z9-1X; Fri, 15 Sep 2017 16:17:52 -0400 Date: Fri, 15 Sep 2017 16:17:52 -0400 From: Bruce Momjian To: Andreas Joseph Krogh Cc: Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" , Stephen Frost Subject: Re: Clarification in pg10's pgupgrade.html step 10 (upgrading standby servers) Message-ID: <20170915201752.GA9874@momjian.us> References: <20170914191356.GC6595@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 Fri, Sep 15, 2017 at 01:23:45AM +0200, Andreas Joseph Krogh wrote: > I tested upgrading from 9.6 to 10 now, using pg_upgrade, and pg_upgrade creates > the new data-dir with pg_wal "in it" (just like regular initdb), so pg_upgrade > seems not to care about where the old version's pg_xlog was. You have to move > (by symlinking) pg_wal to a separate location manually *after* running > pg_upgrade on the master. No special handling is needed when rsync'ing it over > to the standby, so it doesn't need any --hard-links or --size-only, correct? What rsync is going to do is to reproduce the directory structure of the old cluster _in_ the standby's old cluster, and the structure of the new cluster on the standby's new cluster. If you had the WAL directory relocated in the new cluster, the relocation symbolic link will be reproduced by rsync, but the directory it points _to_ will not be copied, so it will point to nothing. Of course, of both old and new clusters share the same WAL directory, which I think is impossible, things would get very confusing quickly. I will reply to this now in a later email. -- 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