Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhCA-0002p8-H0 for pgsql-general@arkaria.postgresql.org; Mon, 14 Feb 2022 19:39:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nJhC9-0007kL-9W for pgsql-general@arkaria.postgresql.org; Mon, 14 Feb 2022 19:39:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhC8-0007kC-Qs for pgsql-general@lists.postgresql.org; Mon, 14 Feb 2022 19:39:32 +0000 Received: from outbound5c.ore.mailhop.org ([54.244.192.240]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhC3-0008Fm-Qa for pgsql-general@lists.postgresql.org; Mon, 14 Feb 2022 19:39:31 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1644867567; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=lZizqn2+SL57whGiH2BbsL4v+cAt0vWryVc6utGuo2UZY49gRNQsxiDgTq6I2QxZpyYkSJHGWeYgw HQDS0up7DJB/HFT6IVgDiosiHy1EWoNp7Sy5dDdqcYwV66/11gJx49beZnkdhYRQ5l1Qqe+oHQt4VO HbkK64APBC+XD00qVUQUldV7hYmDu5sCHhlRWBJuRn0LeQdBongUl5NQqKZbpX2qcEup9OIpA3ABQ0 TUQJ/2CNyUXY2+OHZHZ1FH5g0Oud4Vv2OmFztTVn9cyUM2sQKfxD8JmWDDy1QdblfL6Trvkr7WiXIr DR14mBtv24m9jCnXjFMtOrupR27+MJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:dkim-signature:dkim-signature:dkim-signature:from; bh=+MhToTtpTOA6q1i/Bo3u0b6q7hs5oM2frIBv/aiflVA=; b=lHL5uUlFUNJxIJx16VHWZXfp6O9f6gzyRAmtObXB1yBD6CITHaxfENDKEPWELi+K7DeKXtz1xYuix gO7kQUiUwv+U6MEFjN0OqfXcr/siCMn6+LsS8SS3a++7RSQ4o8spj8qRzdVUjWozzQBIDJhatGN+8w F3eF+yTgib4wL+XcctwoZRCW6js5cIdi/XF8j26w12Nr4l79buk9/xC8UszodJdwH9/icVmPPtV9LX Ky8KD5rO/o725oQMK53BcNqykXK7wsG6xneZ2HriE0mVADAd53Ea1imD/JVe6glg5ZgEyZAJm/sIzI xWdeCZvqHQri5tWenZz/Ay95Y1cRY1g== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=pass smtp.mailfrom=lists.simkin.ca smtp.remote-ip=172.105.109.24; dkim=pass header.d=lists.simkin.ca header.s=athena header.a=rsa-sha256 header.b=B/n0jnoV; dmarc=pass header.from=lists.simkin.ca; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.simkin.ca; s=duo-1610662143981-d3c4c825; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=+MhToTtpTOA6q1i/Bo3u0b6q7hs5oM2frIBv/aiflVA=; b=f3zzi1q7f/JE31qtfC0WFAi2VTmDpVJsbMJ1t3XnemFuSpK2BNYQ8GiTnIpg+36ozlM7p0UlGsjrh hiXndyl12p0zlVwKNdBOeP1cdR56pSgd//vWsOU+AvJYywyI4OEbXiaepTc3V4YMthXDQJ/pcGd49s Z+BJJ7rBpCZmHcwI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=+MhToTtpTOA6q1i/Bo3u0b6q7hs5oM2frIBv/aiflVA=; b=h7yq1JqsnfOaSBmaX0sgG9CtOxdgBI4lcl0HArikmnlfaeC4e7I1olEaLB4OVIDWc1SsiglEWo3YN INaOqp0FmAlVgKu2Y4KXCnSdU8PODkGSyFoeEVn9kn7gYb+v9fzZvfB3/bzUXx+kzdFASIE8rVt0Et 4Vr0xudEtS/YMJccpGId5f3ftyH4mVzEoPFRgXt4NL+Y6i7Ivufr6s4J8ow4hRq1I1aguQp9PXtB4V Jfy6YNjrYsN6i0bctVWyc4JU1b/0EZ/7choo4lOBn1Aucj0BnkEB61YKe6KTHxZh5Wfbx7h6VWsLPl dcYqWisPKgJV9iN/nfIP6CU/HjMwADA== X-Originating-IP: 172.105.109.24 X-MHO-RoutePath: c2lta2lu X-MHO-User: d06b412d-8dcd-11ec-a2f2-bf9d68d023b6 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from athena.simkin.ca (athena.simkin.ca [172.105.109.24]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id d06b412d-8dcd-11ec-a2f2-bf9d68d023b6; Mon, 14 Feb 2022 19:39:26 +0000 (UTC) Received: from skynet.simkin.ca (node-1w7jr9sr73xr4ze19xwgjcteu.ipv6.telus.net [IPv6:2001:569:bce0:6400:fa75:a4ff:fe2f:92e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id A0317C6BF98E for ; Mon, 14 Feb 2022 11:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1644867554; bh=IrytU4Lbt6U8waB9Et0oTtglsJQ6vPvzUTqg7vfNpHs=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=B/n0jnoVJSPWkHJuKBjaOe718n/5iSAEeBsYPdHBebVmZTdfT9IrHctJBoblMDfll IPX8zqbilGjw8RPbMveVbezlnQUHysI2YCnbvgax547aZiLRoV1YdFJofRWz/FdXCw 78T/q7kT6x+WrXDsfNJPWEQjx7tD2B/4omC0N4GbLOrkIssmpaK7YfFBN5geO8Wk1O NmU9hq2jzsYvoxmgAyYTS147Ph2RRhAKeGoFeTOuEhx63TAMhlKwMWViJ8fkIgZaxA XVEB+UkrpbR+wiD6U02LYK5v6NXRpVZKmVGbGoczyd21U1ggnIcYKrvQyOgv1crC5i 5jopPsg7/T4kw== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id 36783105B1B00 for ; Mon, 14 Feb 2022 11:39:21 -0800 (PST) Message-ID: <73f0c0df6e624830920c3a73d214084e0ea86e19.camel@lists.simkin.ca> Subject: Re: Moving the master to a new server From: Alan Hodgson To: pgsql-general@lists.postgresql.org Date: Mon, 14 Feb 2022 11:39:21 -0800 In-Reply-To: <8891e8ab-2351-8b97-5496-f3bf4b19922b@godzone.net.nz> References: <8891e8ab-2351-8b97-5496-f3bf4b19922b@godzone.net.nz> Content-Type: multipart/alternative; boundary="=-fZ+YMDNMzR0IzB6uFd8G" X-PGP-Key: fp="EF82 6F8D A3BA A096 FFA3 05F2 A7A0 40A5 34E5 AA0B"; id="0x34E5AA0B"; get= User-Agent: Evolution 3.40.4 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-fZ+YMDNMzR0IzB6uFd8G Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8bit On Tue, 2022-02-15 at 08:29 +1300, Glen Eustace wrote: > I need to move my master postgresql deployment to a new server. > > I am comfortable with stopping all connections then doing a > pg_dumpall > > psql to move the databases, they are not huge so this completes in > an > acceptable time and I am not expecting any data loss but I am > unsure of > what impact this will have on the streaming replication.  I will be > rebooting the new server with the old servers network configuration > so I > am hoping that when I let connections back in, replication will > just > restart but I cant find any documentation that says so. > pg_dump -> restore will break your streaming replication. You'll need to set it up again. If the PG version isn't changing and you're still on the same version of Linux, rsync would be easier. --=-fZ+YMDNMzR0IzB6uFd8G Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Tue, 2022-02-15 at 08:29 +1300, Glen Eusta= ce wrote:
I need to move my master pos= tgresql deployment to a new server.

I am comfo= rtable with stopping all connections then doing a pg_dumpall >
psql to move the databases, they are not huge so this completes in an=
acceptable time and I am not expecting any data loss but I = am unsure of
what impact this will have on the streaming rep= lication.  I will be
rebooting the new server with the = old servers network configuration so I
am hoping that when I= let connections back in, replication will just
restart but = I cant find any documentation that says so.


pg_dump -> restore will break your streaming r= eplication. You'll need to set it up again.

If the= PG version isn't changing and you're still on the same version of Linux, r= sync would be easier.

--=-fZ+YMDNMzR0IzB6uFd8G--