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 1hborf-0001B8-1Z for pgsql-performance@arkaria.postgresql.org; Fri, 14 Jun 2019 16:15:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbord-0007in-N1 for pgsql-performance@arkaria.postgresql.org; Fri, 14 Jun 2019 16:15:41 +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 1hbord-0007i7-9a for pgsql-performance@lists.postgresql.org; Fri, 14 Jun 2019 16:15:41 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbora-0005cK-QF for pgsql-performance@lists.postgresql.org; Fri, 14 Jun 2019 16:15:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id B1F735F7BE; Fri, 14 Jun 2019 12:15:38 -0400 (EDT) Date: Fri, 14 Jun 2019 12:15:38 -0400 From: Stephen Frost To: Bruce Momjian Cc: Fabio Pardi , pgsql-performance@lists.postgresql.org Subject: Re: Fwd: upgrade to PG11 on secondary fails (no initdb was launched) Message-ID: <20190614161538.GH2480@tamriel.snowman.net> References: <68cf5e6c-8eb0-d8dc-08ec-78d8e910c17c@portavita.eu> <20190614033001.5jif725fxchtopg7@momjian.us> <20190614143940.vux2quolie4s6luv@momjian.us> <20190614144409.bmrlzgnu4ibhz2cr@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eOTraLL9VkO9n9NK" Content-Disposition: inline In-Reply-To: <20190614144409.bmrlzgnu4ibhz2cr@momjian.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --eOTraLL9VkO9n9NK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Bruce Momjian (bruce@momjian.us) wrote: > On Fri, Jun 14, 2019 at 10:39:40AM -0400, Bruce Momjian wrote: > > On Fri, Jun 14, 2019 at 03:12:29PM +0200, Fabio Pardi wrote: > > > Using --size-only, tells rsync to only check the size of the blocks. > > > That is: if the block is present on the destination, and is the same > > > size as the origin, then skip. > >=20 > > The files are _exactly_ the same on primary and standby, so we don't > > need to check anything. Frankly, it is really only doing hard linking > > of the files. >=20 > Here is the description from our docs: >=20 > What this does is to record the links created by pg_upgrade's > link mode that connect files in the old and new clusters on the > primary server. It then finds matching files in the standby's old > cluster and creates links for them in the standby's new cluster. > Files that were not linked on the primary are copied from the > primary to the standby. (They are usually small.) This provides > rapid standby upgrades. Unfortunately, rsync needlessly copies > files associated with temporary and unlogged tables because these > files don't normally exist on standby servers. >=20 > The primary and standby have to be binary the same or WAL replay would > not work on the standby. (Yes, I sometimes forgot how this worked so I > wrote it down in the docs.) :-) Right- this is *not* a general process for building a replica, this is specifically *only* for when doing a pg_upgrade and *everything* is shut down when it runs, and every step is checked to ensure that there are no errors during the process. Thanks! Stephen --eOTraLL9VkO9n9NK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdA8gqAAoJEO1sijiDR2RVRTcP/0+njSMFYLRV1klae0vaVUL9 Qk14klxUXZl0fcaC3a+ihiNzTlIIpeEaqXwzlp7mNzP32RZpgU0JDlGjZ71h9n4p SzI+uwDp1qu1gYy0YdvkPxdj6f9phQCEQLKi7s/wdpS4g8wAb3I3tCTVH6Jvtw9g 1eyyZYZStWaKPQLtRjDXdVgSwAR5dI2W+Wg3AZydkyI/8TGHp6Wyh+EhjJxv+KwB 7+lDcaCRUP9WR12ALxursfkfT8bxZcF/NAxbPqrOUIazvsizqPViBLmO78ZHRmYP LqEt2Ov68KbnB2Y2V+e/joSKGBEBR7Koe9va+VASnOYGtyXACzzQR9o44gmCnN/6 2/fOmJYl2k4g9HfK00XpDZP8q3idIM1qKBOTFwR+3LLC1grj+phB0scEh2h+ALW0 e2/z+EHezxTJdkGX80gC3H/ML2RutAcqOty3ZXUyl+SBtr5gDH9KsIaOEfwPR6Fx hrd6XOEK7xU2MQ2brZQYBtDBAVcwTV7vt+P5hzYE8wOZGC4X3GqrIPb/ize+7POT Gkdl+oCPwq2Yhf3DMvOaTEUsWiCOY75ZHawvr+vVXg7bDpO8zuybKBH64mK/OlTl hR2Rt6BVUT4Xyg2XIEg90wv0bOgt5Fn5c1mvd0CFtWwQj3iBAyis3aY3Zbr5nfW2 MZW5R0y9wfXKyDTA1mjH =GG5x -----END PGP SIGNATURE----- --eOTraLL9VkO9n9NK--