Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxevz-0000zE-K7 for pgsql-admin@arkaria.postgresql.org; Wed, 05 Sep 2018 21:01:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxevy-00071q-6Y for pgsql-admin@arkaria.postgresql.org; Wed, 05 Sep 2018 21:01:54 +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.89) (envelope-from ) id 1fxevx-00071j-SQ for pgsql-admin@lists.postgresql.org; Wed, 05 Sep 2018 21:01:54 +0000 Received: from resqmta-ch2-04v.sys.comcast.net ([2001:558:fe21:29:69:252:207:36]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxevv-0005GK-FB for pgsql-admin@postgresql.org; Wed, 05 Sep 2018 21:01:52 +0000 Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id xVkFfZO2llHCvxevtfmGjn; Wed, 05 Sep 2018 21:01:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1536181309; bh=3Q44kfR3/o31pnJQ1CF/AYn0dj5bL5PqtYlBt+3smTk=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=WEZB1Faaki5S2pHsQuFArZrsyKQDKR7NRXfpmnVY1Y4ucE9wqb7JfLnwSFa1va9Yg RmctXUmeiTHbEBO4YpEehoDS35WktXWOjGgN88g0ZEcsPW+40LRcQQhi+XHxz71+uT 5uRPbY9I72c+fz32LtZJEojdWjOg/RC2u8KA3FSlQUrCEEaDmNf9xV/xgT4su/Vrq9 nfanr6iFlrGGq2kdEI4OOZhDUZbR1GVestKXTRqLDIYmOlrgMUdlYaigj0wbNCtIlM J0mRW/Zujy4ORddTVoJ/JPUpgc2KRDjkEYa8qVtTv2NEoL6PnVujscTbH77g167h4F BvKyB2ZGH7IVQ== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-05v.sys.comcast.net with ESMTPA id xevjfNNu6GBVmxevjflYJa; Wed, 05 Sep 2018 21:01:47 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 992E0260056; Wed, 5 Sep 2018 16:01:39 -0500 (CDT) From: Jerry Sievers To: Mark Steben Cc: Jerry Sievers , pgsql-admin Subject: Re: will this upgrade strategy work? References: <87pnxrrbtp.fsf@jsievers.enova.com> Date: Wed, 05 Sep 2018 16:01:39 -0500 In-Reply-To: (Mark Steben's message of "Wed, 5 Sep 2018 15:28:28 -0400") Message-ID: <8736un7j64.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4wfF4bTrjscRYqonSzBB59YQ9vm1Favw2hofyH2M/1aUJe19H4s8ohCxFj0cL9hIcLxgphixyAeamFJRWbMogzbMoyZOQ13YU1FmD5toWiuBjmcNsG1o5h OvcNh/A67U5mIGebrf3zI42u4/YerEBLfMTnc1c/rfrhjBdyIepttp0ibN1qsvcb6WwBkXWuzj063zWQMQyx5Ui4iTck0Pqcq6A5V71OqWr2tBPBhX/8+0IR hJjQkj6FElVWHtX33qaC2cBkylo/wGOmgfKoYBHse/M= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mark Steben writes: > HI Jerry > > Thanks for your response.=C2=A0 Is the copy option of pg_upgrade faster > than a traditional pg_dump-restore? It should be unless the system is horribly bloated. But your proposal doesn't specify dump/restore anyway. > Remember we are striving for speed and mimimal downtime. Then consider doing a logical live replica using any of slony, skytools or pglogical from your 9.4 system into 9.6 and then just promote the 9.6 system and run on it. FYI > > On Wed, Sep 5, 2018 at 3:20 PM, Jerry Sievers > wrote: > > Mark Steben writes: >=20=20=20=20 > > Good afternoon, team. > > > > We wish to do a postgres upgrade from 9.4 to 9.6.=C2=A0 In order to > > minimize downtime we were thinking to do this: > > =C2=A0 1. bring postgres down (9.4 is on 'diskset 1') > > =C2=A0 2. do a physical copy of the data to 'diskset 2' (same > phyxical > > server. > > =C2=A0 3.=C2=A0 do an inplace pg_upgrade=C2=A0 to 9.6 on 'diskset 2' >=20=20=20=20 > Note that the copy (vs link) option of pg_upgrade is > non-destructive and > probably a simpler version than what you're proposing. >=20=20=20=20 > Whatever method you choose, best do a prior test run in a > non-prod > setting to insure everything is correct. >=20=20=20=20 > HTH >=20=20=20=20 >=20=20=20=20 > > =C2=A0 4.=C2=A0 Bring postgres up on 9.6 diskset 2 > > =C2=A0This way we have 9.4 on diskset 1 to fall back on. > > > > This would work much faster than the traditional dump restore. > > > > Any comments welcome.=C2=A0 Thanks. > > > > > > -- > > Mark Steben > > =C2=A0Database Administrator > > @utoRevenue=C2=A0|=C2=A0Autobase=C2=A0 > > =C2=A0 CRM division of Dominion Dealer Solutions=C2=A0 > > 95D Ashley Ave. > > West Springfield, MA 01089 > > t: 413.327-3045 > > f: 413.383-9567 > > > > www.fb.com/DominionDealerSolutions > > www.twitter.com/DominionDealer > > =C2=A0www.drivedominion.com > > > >=C2=A0 > > > > > > > > > > > > >=20=20=20=20 > -- > Jerry Sievers > Postgres DBA/Development Consulting > e: postgres.consulting@comcast.net > p: 312.241.7800 > > > > > -- > Mark Steben > =C2=A0Database Administrator > @utoRevenue=C2=A0|=C2=A0Autobase=C2=A0 > =C2=A0 CRM division of Dominion Dealer Solutions=C2=A0 > 95D Ashley Ave. > West Springfield, MA 01089 > t: 413.327-3045 > f: 413.383-9567 > > www.fb.com/DominionDealerSolutions > www.twitter.com/DominionDealer > =C2=A0www.drivedominion.com > >=20=20 > > > > > > --=20 Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800