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 1idJOl-0006Ad-7F for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 19:36:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idJOj-00039R-Vr for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 19:36:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idJOj-00038K-HI for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 19:36:17 +0000 Received: from mail-oln040092010075.outbound.protection.outlook.com ([40.92.10.75] helo=NAM04-CO1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idJOf-0002Vh-Q2 for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 19:36:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GE/P58x5O8/N0pYMjOkDLzxO/Tc+B2BdaTkj0YmNFwlCEW0qZOX0U26ytj6IvAPk6SCtL5vGPInavEPCCvPyqyqZfPVgbHrD33vUlpb2EP8JPSlxIiy7/zgiH0oAPOoPebwJLCoDFuxt83ujKrw1THTO0SbvzV+9CxG+AT3HqIV1nPK36Abfn34kUBSn7AOSSZAsUTVfSfjfawwu/jFoKi3XXKXv/C5zJM7PSfWJsrlW+Syo11NCZ2+PcfTXUIk4RL73OegIud5AU00qY9Pfzf3cFDNV6Vvyrp87CTeXaCNJBra6gUl+BBH0HP47p1w6RgkSAxREn+gSgExr9A4elQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7yOI9B/fGg1enhCieQKnUqAzrOtjilhRDg7K3NYzB6k=; b=FcTGHA7UTfJjfyOqnZauq2qJxEOq8ilVNW2ZJJuQC0F6UUvg+qVAsKhKRAgKtSkMYSVnYbL5E1V4PzYOnDa6aZaiS5EfRv9+Huiw+u7GobJepMtFpHd6Pb5UcRs1norM+Cu9PSlXzj/a4xKgHM8Lr3exK3KpjiY2yioLNECQ4pl2Rrz+FoQYl5tSuB82vjtNOtziymraFJ7elnRrubz9wW947gxOoWLTqi1nVvaRFECZ8hChjaX6stc+fsEU20BYNml/FmkHFB3YT1azka7bWQ0Z7+0rNceOAKKJNVGHZPKSQem+cssjESRUfDacUo3SEWDS0aCh0LFD/sjI5EQ3NA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7yOI9B/fGg1enhCieQKnUqAzrOtjilhRDg7K3NYzB6k=; b=dvd6Dx2lkkSeeVdICTmv6HOoGfeR2EYHjuXNxTCfbM0SwTlCPfXYUZDoJBUd5SoqHI9Qm0EHJJQvo4WLefk0TkuylopnuKId+3rTykhiDGcsToQoKm8ZpwkiTbtQehUDx2bmvAUGAcI9TMjnBET/fiO+wh3Vdy50grlzPDKu7LpFtj4mZsqCHpofbz1fuMSIcDXR/xmKrevN6PSWFLeXe2NaRlwD5qIb/JjnWHhFq0mwRU8YBQjhhqr/9r9CtklOXjlCXbKhL0ZKQMEDkEvfqS4g5A1N261ZQ02S8JcxeeDzJZhbfMbqb83Wrn1m3ogRJwdNyJQFnv4jcHw2L5y2XA== Received: from SN1NAM04FT004.eop-NAM04.prod.protection.outlook.com (10.152.88.52) by SN1NAM04HT232.eop-NAM04.prod.protection.outlook.com (10.152.89.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18; Fri, 6 Dec 2019 19:36:10 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com (10.152.88.54) by SN1NAM04FT004.mail.protection.outlook.com (10.152.88.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18 via Frontend Transport; Fri, 6 Dec 2019 19:36:10 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::155d:cebe:26c9:14b8]) by BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::155d:cebe:26c9:14b8%7]) with mapi id 15.20.2516.014; Fri, 6 Dec 2019 19:36:10 +0000 From: Julie Nishimura To: Justin CC: Tom Lane , Stephen Frost , Laurenz Albe , Michael Paquier , "pgsql-general@lists.postgresql.org" , pgsql-general Subject: Re: upgrade and migrate Thread-Topic: upgrade and migrate Thread-Index: AQHVqifreilsf1ETrUqO7jM5G23LtaepZ+WAgAA0cwCAAFcwAIAABaMAgANRlb2AACDTgIAAGIUO Date: Fri, 6 Dec 2019 19:36:10 +0000 Message-ID: References: <20191204044843.GD2381@paquier.xyz> <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> <20191204130830.GF6962@tamriel.snowman.net> <13833.1575466120@sss.pgh.pa.us> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:F30062BE81E6CC434F04D1FA07675F8B74AC8F1582A2EAAE792450378AF67C5A;UpperCasedChecksum:2D65C77805FAFF34B73901CF77DE7A9D180CF83A5CE901EAE8572C87A4361F70;SizeAsReceived:7518;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [vYMv6aVllY869b47CUT47Sez+bXpNnBZ] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 83f874ab-e11d-4ec3-b9db-08d77a838be3 x-ms-traffictypediagnostic: SN1NAM04HT232: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y/ZVKAI2ahmD3BajTi56qjb7GVbh+tHxLewgLtBm4U/SPeofuZYbCxh+EF5asNZcXE9UnisGCASC4tkD2rL5mRTjapCHYj8PnkICOEGbLv+nQse/qO3TxztaD2rWgD+2tp9+fFcA7VG829NNdqdK62+Est5vICrOVBncUcsOkEpq/4BKtrMcunLR1ypOYEDW x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0BYAPR08MB5014namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 83f874ab-e11d-4ec3-b9db-08d77a838be3 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2019 19:36:10.2226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT232 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0BYAPR08MB5014namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable These are great points. Thanks! I will push for some testing environment ________________________________ From: Justin Sent: Friday, December 6, 2019 10:06 AM To: Julie Nishimura Cc: Tom Lane ; Stephen Frost ; Laure= nz Albe ; Michael Paquier ; = pgsql-general@lists.postgresql.org ; pg= sql-general Subject: Re: upgrade and migrate Off topic but food for thought given the jump in versions 8.3 to (9.6 or gr= eater.) List of major changes i can think of to watch out for that can bite without= warning.. SQL operators~=3D~ for Like were drop in 8.4 =3D> 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 impossibl= e 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 re= store 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 > wrote: Thank you everybody for your suggestions. So, to summarize - we can run pg_upgrade from 8.3 to 9.4 (in place), fix ap= p 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 up= grade to version 10). First step requires downtime. Second does not. Correct? -Julie ________________________________ From: Tom Lane > Sent: Wednesday, December 4, 2019 5:28 AM To: Stephen Frost > Cc: Laurenz Albe = >; Michael Paquier >; Julie= Nishimura >; pgsql-gen= eral@lists.postgresql.org >; = pgsql-general > Subject: Re: upgrade and migrate Stephen Frost > writes: > * Laurenz Albe (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 --_000_BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0BYAPR08MB5014namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
These are great points. Thanks! I will push for some testing environment


From: Justin <zzzzz.gr= af@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@sno= wman.net>; Laurenz Albe <laurenz.albe@cybertec.at>; Michael Paquie= r <michael@paquier.xyz>; pgsql-general@lists.postgresql.org <pgsql= -general@lists.postgresql.org>; pgsql-general <pgsql-general@postgres= ql.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 wi= thout warning..   

SQL operators~=3D~   for Like were drop in 8.4 =3D> for hstore= was drop in 9.0
in 9.1 standard_conforming_string is  ON by default   previo= us 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 sch= ema 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 Jul= ie Nishimura <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 ap= p 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 up= grade to version 10).

First step requires downtime. Second does not. Correct?

-Julie


Fr= om: Tom Lane <tgl@sss.pgh.pa.us>
Sent: Wednesday, December 4, 2019 5:28 AM
To: Stephen Frost <sfrost@snowman.net>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>; Michael Paquier <michael@paquier.xyz&= gt;; Julie Nishimura <juliezain@hotmail.com>; pgs= ql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org= >; pgsql-general <pgsql-general@postgresql.org>
Subject: Re: upgrade and migrate
 
Stephen Frost <sfrost@snowman.net> writes:
> * Laurenz Albe (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 act= ually 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.

            &nb= sp;           regards, to= m lane
--_000_BYAPR08MB5014D75F24BB08FDC46B65FFAC5F0BYAPR08MB5014namp_--