From Dan.Lu@sig.com Tue Dec 24 17:43:35 2019 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 1ik7rY-0003G1-Ve for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 14:42:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ik7rW-0007lW-6E for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 14:42:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijoDc-0001gM-9O for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2019 17:43:40 +0000 Received: from mail2.sig.com ([141.162.101.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijoDZ-0005ow-3Y for pgsql-general@postgresql.org; Tue, 24 Dec 2019 17:43:38 +0000 X-SIG-Detect: None X-IronPort-AV: E=Sophos;i="5.69,352,1571716800"; d="scan'208,217";a="79973664" From: "Lu, Dan" To: "pgsql-general@postgresql.org" Subject: Question on upgrading postgresql from 10.7 to 11.5 Thread-Topic: Question on upgrading postgresql from 10.7 to 11.5 Thread-Index: AdW6gYgFjlPjDNyWRGO8JJkZfgd4xA== Date: Tue, 24 Dec 2019 17:43:35 +0000 Message-ID: <4a13b7d02e154fbea35d60c59340b454@sig.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.25.121] x-processed-by-exchange: True Content-Type: multipart/alternative; boundary="_000_4a13b7d02e154fbea35d60c59340b454sigcom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_4a13b7d02e154fbea35d60c59340b454sigcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I am trying to upgrade my PG instance from 10.7 to 11.5. I got an error in doing so. Any idea what I am missing? Example: pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/dpoc115/data = -b /hostname/pg/PostgreSQL-10.7/bin -B /hostname/pg/PostgreSQL-11.5/bin -p = 5432 -P 9432 -c -v Error message: old and new pg_controldata WAL segment sizes are invalid or do not match Failure, exiting ________________________________ IMPORTANT: The information contained in this email and/or its attachments i= s confidential. If you are not the intended recipient, please notify the se= nder immediately by reply and immediately delete this message and all its a= ttachments. Any review, use, reproduction, disclosure or dissemination of t= his message or any attachment by an unintended recipient is strictly prohib= ited. Neither this message nor any attachment is intended as or should be c= onstrued as an offer, solicitation or recommendation to buy or sell any sec= urity or other financial instrument. Neither the sender, his or her employe= r nor any of their respective affiliates makes any warranties as to the com= pleteness or accuracy of any of the information contained herein or that th= is message or any of its attachments is free of viruses. --_000_4a13b7d02e154fbea35d60c59340b454sigcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am trying to upgrade my PG instance from 10.7 to 11.5.

 

I got an error in doing so.  Any idea what I am missing?

 

Example: pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/d= poc115/data -b /hostname/pg/PostgreSQL-10.7/bin -B /hostname/pg/PostgreSQL-= 11.5/bin -p 5432 -P 9432 -c -v

 

Error message:

old and new pg_controlda= ta WAL segment sizes are invalid or do not match

Failure, exiting<= span style=3D"font-family:"Courier New";color:black"><= /span>




IMPORTANT: The information contained in this email and/or its attachments i= s confidential. If you are not the intended recipient, please notify the se= nder immediately by reply and immediately delete this message and all its a= ttachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an uninte= nded recipient is strictly prohibited. Neither this message nor any attachm= ent is intended as or should be construed as an offer, solicitation or reco= mmendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor= any of their respective affiliates makes any warranties as to the complete= ness or accuracy of any of the information contained herein or that this me= ssage or any of its attachments is free of viruses.
--_000_4a13b7d02e154fbea35d60c59340b454sigcom_-- From rjuju123@gmail.com Wed Dec 25 15:36:24 2019 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 1ik8gb-00056o-23 for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 15:34:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ik8gZ-0000PB-LT for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 15:34:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ik8gZ-0000P3-6D for pgsql-general@lists.postgresql.org; Wed, 25 Dec 2019 15:34:55 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ik8gS-00075L-MB for pgsql-general@postgresql.org; Wed, 25 Dec 2019 15:34:53 +0000 Received: by mail-qv1-xf42.google.com with SMTP id p2so8331941qvo.10 for ; Wed, 25 Dec 2019 07:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f/eThBur64J1PcXouAqw6/mMuZ8c0YGwNOhgzB/Ihw0=; b=MBARBtFi+mupVKks88rLHZ2+xTOpd5QtjiJCBga8RSeJXCYRgGAGMAGOXaR7PzLvTl C3FThi83NE9D0121ST0Lh5CfCv4u6CWmfqcJDZ64PLIQfIF+6ZmUWP9eiurIvCFWUprv ZKxT06Sldjls9vH6vdM/wC9uuA+jdfXSlsvHzz4Pxn8PJD3beN46XRLTJheTI52SpmML QStD9Y8B0ha4Edh60jjIXrVHISfCf0M0lmQue8qicRE3b69jn5U+Z1TZOYV53biH4RtT Cu1JkXkmFEE+5toDIPknnpuv0akEZNLeNOzwInYHHYopEFjLST1TCkL6MXPGX5aLOH+L gbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f/eThBur64J1PcXouAqw6/mMuZ8c0YGwNOhgzB/Ihw0=; b=as6tqFxu7KjhzTf31yLsA+EKGnfw0M0cbzoZhsSJrKBu2K3hiszPxqFvxMiKwNcwNt 2RczNSQTQGnb1WBAeUcdd89MzJjWSjn6fDjOQkdzt/iw6GKdzv+qa0QmElfFtNhKi3bD 0ORZnNhS7pO7+qf/1v3lS1CPtUAwwixX4czGt6X6eAyefjXuPQ5KkZsJ2vClXiz1f01M /8WENNH+rWCsNn82rpdHCTOgyUHrT1Lo2ZUeZohWltrc4Pis4MFvPK0PpJ5TOoLu4gFD 8haAB3+i5RWWVBf2Lrqck+VX3xlfB4RfwAM0Mz+zlk9Duar8i88Mw1KgTJ6gHjxuqJ1R NZTQ== X-Gm-Message-State: APjAAAWearNCn3p8BIjfjoTPf1+vSavz/R8p4V9Eds9K4m6l9WmRc+mL /A+FrVItgfe3cgxqYSULDhnrMCEfU8Jm9sJ+ZPM= X-Google-Smtp-Source: APXvYqy/v+bAui8fCi2BsnFNyDQITQZI4xpHRW0xqCVyBLq4Y3xPfw66yJ6+X0HnGDt7b1WxUhUbazopr0+ISNLF6fs= X-Received: by 2002:a0c:b5cd:: with SMTP id o13mr33472073qvf.47.1577288087629; Wed, 25 Dec 2019 07:34:47 -0800 (PST) MIME-Version: 1.0 References: <4a13b7d02e154fbea35d60c59340b454@sig.com> In-Reply-To: <4a13b7d02e154fbea35d60c59340b454@sig.com> From: Julien Rouhaud Date: Wed, 25 Dec 2019 16:36:24 +0100 Message-ID: Subject: Re: Question on upgrading postgresql from 10.7 to 11.5 To: "Lu, Dan" Cc: "pgsql-general@postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Dec 25, 2019 at 3:42 PM Lu, Dan wrote: > > Hello, > > I am trying to upgrade my PG instance from 10.7 to 11.5. > > I got an error in doing so. Any idea what I am missing? > > Example: pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/dpoc115/data -b /hostname/pg/PostgreSQL-10.7/bin -B /hostname/pg/PostgreSQL-11.5/bin -p 5432 -P 9432 -c -v > > Error message: > > old and new pg_controldata WAL segment sizes are invalid or do not match The message is pretty much self explanatory. It looks like you used "initdb --wal-segsize" for the 11.5 cluster using a value different from the one that were used in your 10.7 cluster (probably 16MB). You can check the value for each using "SHOW wal_segment_size". You have to recreate a new pg11 data directory using the same value as the 10.7 one. While at it, you should update the pg11 binary to the latest minor version, 11.6. From Dan.Lu@sig.com Thu Dec 26 13:49:06 2019 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 1ikd0w-0001Sc-PS for pgsql-general@arkaria.postgresql.org; Thu, 26 Dec 2019 23:57:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikd0v-0000ig-JP for pgsql-general@arkaria.postgresql.org; Thu, 26 Dec 2019 23:57:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikTVq-00066q-RD for pgsql-general@lists.postgresql.org; Thu, 26 Dec 2019 13:49:14 +0000 Received: from mail1.sig.com ([141.162.101.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ikTVj-0000D8-Us for pgsql-general@postgresql.org; Thu, 26 Dec 2019 13:49:13 +0000 X-SIG-Detect: None X-IronPort-AV: E=Sophos;i="5.69,359,1571716800"; d="scan'208";a="88834016" From: "Lu, Dan" To: Julien Rouhaud CC: "pgsql-general@postgresql.org" Subject: RE: Question on upgrading postgresql from 10.7 to 11.5 Thread-Topic: Question on upgrading postgresql from 10.7 to 11.5 Thread-Index: AdW6gYgFjlPjDNyWRGO8JJkZfgd4xAA4XE0AACQFw9A= Date: Thu, 26 Dec 2019 13:49:06 +0000 Message-ID: References: <4a13b7d02e154fbea35d60c59340b454@sig.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.25.121] x-processed-by-exchange: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk VGhhbmtzIQ0KDQpJIHdhcyBtaXNsZWQgYnkgInBnX2NvbnRyb2xkYXRhIiBrZXl3b3JkIGFuZCB0 b3RhbGx5IGlnbm9yZWQgdGhlIFdBTCBzZWdtZW50IHNpemUgdmFyaWFibGUuDQoNCk11Y2ggYXBw cmVjaWF0ZWQgZm9yIHlvdXIgaGVscC4NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZy b206IEp1bGllbiBSb3VoYXVkIFttYWlsdG86cmp1anUxMjNAZ21haWwuY29tXQ0KU2VudDogV2Vk bmVzZGF5LCBEZWNlbWJlciAyNSwgMjAxOSAxMDozNiBBTQ0KVG86IEx1LCBEYW4gPERhbi5MdUBz aWcuY29tPg0KQ2M6IHBnc3FsLWdlbmVyYWxAcG9zdGdyZXNxbC5vcmcNClN1YmplY3Q6IFJlOiBR dWVzdGlvbiB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