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 1gvpSj-0001DN-Bp for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 20:24:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvpSh-0005sO-GX for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 20:24:23 +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 1gvpPW-0003iT-Vu for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 20:21:07 +0000 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2] helo=mx2.mailbox.org) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvpPT-0000Sf-QV for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 20:21:05 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 19372A10A8; Mon, 18 Feb 2019 21:20:59 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id riw_7MN1NI_P; Mon, 18 Feb 2019 21:20:54 +0100 (CET) Message-ID: <4f1d17eb6a46da084580f814cd0fd50d4ee2542c.camel@cybertec.at> Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas From: Laurenz Albe To: =?ISO-8859-1?Q?Mart=EDn_Fern=E1ndez?= , "pgsql-generallists.postgresql.org" Date: Mon, 18 Feb 2019 21:20:53 +0100 In-Reply-To: <5c6b0bc5828e9f3dde000002@polymail.io> References: <5c6b0bc5828e9f3dde000002@polymail.io> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Martín Fernández wrote: > After reading the pg_upgrade documentation multiple times, it seems that after running pg_upgrade on the primary instance, we can't start it until we run rsync from the primary to the standby. I'm understanding this from the following section in the pg_upgrade manual page. > > You will not be running pg_upgrade on the standby servers, but rather rsync on the > primary. Do not start any servers yet. Immediately following, you can read: If you did not use link mode, do not have or do not want to use rsync, or want an easier solution, skip the instructions in this section and simply recreate the standby servers once pg_upgrade completes and the new primary is running. So this is not compulsory, it's just an efficient method to quickly get the standby server updated. There is nothing wrong with rebuilding the standby later. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com