Re: Fwd: upgrade to PG11 on secondary fails (no initdb was launched)

Stephen Frost <[email protected]>
Newsgroups gmane.comp.db.postgresql.performance
Message-ID <[email protected]>
Greetings,

* Bruce Momjian ([email protected]) 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.
> > 
> > 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.
> 
> Here is the description from our docs:
> 
>        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.
> 
> 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
signature.asc (application/pgp-signature, 819 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.