From: Julie Nishimura <juliezain@hotmail.com>
To: Justin <zzzzz.graf@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: upgrade and migrate
Date: Fri, 6 Dec 2019 19:36:10 +0000
Message-ID: <BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0@BYAPR08MB5014.namprd08.prod.outlook.com> (raw)
In-Reply-To: <CALL-XeMMF7-LpeUVu9iyq3rMoZ8wneNG8hyQFmCNkN5ViRGVgg@mail.gmail.com>
References: <BYAPR08MB50145D4B77BBAFDEE7C0726BAC420@BYAPR08MB5014.namprd08.prod.outlook.com>
<20191204044843.GD2381@paquier.xyz>
<1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at>
<20191204130830.GF6962@tamriel.snowman.net>
<13833.1575466120@sss.pgh.pa.us>
<BYAPR08MB5014830A27A55C1297A3E4C6AC5F0@BYAPR08MB5014.namprd08.prod.outlook.com>
<CALL-XeMMF7-LpeUVu9iyq3rMoZ8wneNG8hyQFmCNkN5ViRGVgg@mail.gmail.com>
These are great points. Thanks! I will push for some testing environment
________________________________
From: Justin <zzzzz.graf@gmail.com>
Sent: Friday, December 6, 2019 10:06 AM
To: Julie Nishimura <juliezain@hotmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>; Stephen Frost <sfrost@snowman.net>; Laurenz Albe <laurenz.albe@cybertec.at>; Michael Paquier <michael@paquier.xyz>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general <pgsql-general@postgresql.org>
Subject: Re: upgrade and migrate
Off topic but food for thought given the jump in versions 8.3 to (9.6 or greater.)
List of major changes i can think of to watch out for that can bite without warning..
SQL operators~=~ for Like were drop in 8.4 => for hstore was drop in 9.0
in 9.1 standard_conforming_string is ON by default previous the default was Off..
9.4 affected arrays.
9.5 operator precedence was changed this affects output and near impossible to find all the code it can affect..
10 removed contrib/tsearch2 (added to the core in 8.3)
There are allot more minor changes that can bit....
Has a test machine been setup and run yet?? just dumping the schema and restore to later version will point out several issues with custom data-types, plpgsql, other PL languages and any missing extensions...
On Fri, Dec 6, 2019 at 11:16 AM Julie Nishimura <juliezain@hotmail.com<mailto:juliezain@hotmail.com>> wrote:
Thank you everybody for your suggestions.
So, to summarize - we can run pg_upgrade from 8.3 to 9.4 (in place), fix app related issues (if any), then migrate to a version more recent than 9.6, either through pg_basebackup or through logical replication (if we would upgrade to version 10).
First step requires downtime. Second does not. Correct?
-Julie
________________________________
From: Tom Lane <tgl@sss.pgh.pa.us<mailto:tgl@sss.pgh.pa.us>>
Sent: Wednesday, December 4, 2019 5:28 AM
To: Stephen Frost <sfrost@snowman.net<mailto:sfrost@snowman.net>>
Cc: Laurenz Albe <laurenz.albe@cybertec.at<mailto:laurenz.albe@cybertec.at>>; Michael Paquier <michael@paquier.xyz<mailto:michael@paquier.xyz>>; Julie Nishimura <juliezain@hotmail.com<mailto:juliezain@hotmail.com>>; pgsql-general@lists.postgresql.org<mailto:pgsql-general@lists.postgresql.org> <pgsql-general@lists.postgresql.org<mailto:pgsql-general@lists.postgresql.org>>; pgsql-general <pgsql-general@postgresql.org<mailto:pgsql-general@postgresql.org>>
Subject: Re: upgrade and migrate
Stephen Frost <sfrost@snowman.net<mailto:sfrost@snowman.net>> writes:
> * Laurenz Albe (laurenz.albe@cybertec.at<mailto:laurenz.albe@cybertec.at>) wrote:
>> Right, Slony is the way to go, since pg_upgrade doesn't support 8.3.
>> I would upgrade to a version more recent than 9.6.
> So... there's a bit of history here. pg_upgrade in 9.4 actually does
> support upgrading from 8.3.X. Support for upgrading from 8.3 was
> removed in 2209b3923a7afe0b6033ecfea972219df252ca8e.
Yeah. Also note that 8.3 to 9.6-or-newer is going to be a pretty
huge jump in terms of minor compatibility issues (have you read
all the relevant release notes?). So there's something to be said
for breaking this down into two steps: update to 9.4, test/fix
your applications against that, then make a second jump to something
current. Each of those jumps could be handled by the respective
version of pg_upgrade. I concur with Laurenz's advice that stopping
at 9.6 is probably not your best choice for a migration today.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: juliezain@hotmail.com, zzzzz.graf@gmail.com, tgl@sss.pgh.pa.us, sfrost@snowman.net, laurenz.albe@cybertec.at, michael@paquier.xyz
Subject: Re: upgrade and migrate
In-Reply-To: <BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50145D4B77BBAFDEE7C0726BAC420@BYAPR08MB5014.namprd08.prod.outlook.com> <20191204044843.GD2381@paquier.xyz> <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> <20191204130830.GF6962@tamriel.snowman.net> <13833.1575466120@sss.pgh.pa.us> <BYAPR08MB5014830A27A55C1297A3E4C6AC5F0@BYAPR08MB5014.namprd08.prod.outlook.com> <CALL-XeMMF7-LpeUVu9iyq3rMoZ8wneNG8hyQFmCNkN5ViRGVgg@mail.gmail.com> <BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0@BYAPR08MB5014.namprd08.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox