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 1hXaH3-0004Dx-Kf for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 23:52:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXaH0-00028P-Ud for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 23:52:22 +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 1hXaH0-00023w-JT for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 23:52:22 +0000 Received: from mail-eopbgr10127.outbound.protection.outlook.com ([40.107.1.127] helo=EUR02-HE1-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 1hXaGx-0007Na-Ct for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 23:52:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=OLIVERMARKETING.onmicrosoft.com; s=selector2-OLIVERMARKETING-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=msUyVT8UpNDSs4htjJuNpUd+S62sBwPKiPHPPoAsy5U=; b=ou57kIa4AhczZa+YBTFN9bFIgJn1yUjXst9iy962NrLLQ6Xw/7LZtZppXa7pOeKYCibyHde2BceBGPx0/AggixFJVQUkrXezTHWNV6QIEv8jexIp/sTM0fLBKcbkeBJRGKHESf1O2/mVKIgPAaF2fsQp8dyLYpskZH1Qns5jhdg= Received: from AM0PR06MB4004.eurprd06.prod.outlook.com (52.133.52.140) by AM0PR06MB5345.eurprd06.prod.outlook.com (20.178.83.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.17; Sun, 2 Jun 2019 23:52:15 +0000 Received: from AM0PR06MB4004.eurprd06.prod.outlook.com ([fe80::759d:a907:ea7b:fb62]) by AM0PR06MB4004.eurprd06.prod.outlook.com ([fe80::759d:a907:ea7b:fb62%4]) with mapi id 15.20.1943.018; Sun, 2 Jun 2019 23:52:15 +0000 From: Zahir Lalani To: Tom Lane CC: "pgsql-general@lists.postgresql.org" Subject: Re: PG10 upgrade issue Thread-Topic: PG10 upgrade issue Thread-Index: AdUZlqgQ/Ri6LH/zQpSmRndhSdOtzQAAtQIAAAEuI+o= Date: Sun, 2 Jun 2019 23:52:15 +0000 Message-ID: References: ,<26624.1559517508@sss.pgh.pa.us> In-Reply-To: <26624.1559517508@sss.pgh.pa.us> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ZahirLalani@oliver.agency; x-originating-ip: [2a02:c7f:de17:9700:e00c:4c55:77e5:1b44] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: aa2cf673-96cf-4ede-7582-08d6e7b55749 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM0PR06MB5345; x-ms-traffictypediagnostic: AM0PR06MB5345: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 005671E15D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(366004)(376002)(136003)(39850400004)(189003)(199004)(76176011)(5660300002)(68736007)(31686004)(4744005)(31696002)(102836004)(53546011)(6506007)(86362001)(99286004)(316002)(71200400001)(71190400001)(6116002)(6916009)(14454004)(7116003)(11346002)(8676002)(53936002)(9686003)(81166006)(6512007)(81156014)(54896002)(73956011)(6486002)(64756008)(66476007)(66446008)(446003)(7736002)(8936002)(6436002)(46003)(72206003)(229853002)(486006)(76116006)(478600001)(91956017)(66556008)(66946007)(476003)(2906002)(14444005)(4326008)(256004)(186003)(25786009)(6246003)(46492003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM0PR06MB5345;H:AM0PR06MB4004.eurprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: oliver.agency does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: DVdsxA7KuAeGqV5N6+2NmSlzgs9tLlXRnB8cS4DCniEA74UUgf5wyAXxiowpy206lcARIa5OU8kbMNkmfsXArwDkPAX5lMIVPjr2zBRxg2UNKWeQQ3WUCq69KsCmnpedLpsUgmyr8jDLY4Q81JsBUUd2eNmSF6/ThCyJXWwr3s2a05bx4mOCUUHQEKhzi3mrOFV1oqNP6ItUQ/8K2iUmyOQKiLfRY0zPgN7D7Kkgbnid6WCvtRxJio6kLzaHfcNHzjsR64XEmxDE4+p1xe4UA3pBBsjN6hiUnuzD8YBbxiLZvmH11Y8+e2WxkcA+Mta34yhWHU5MdiWxJpIyF/V5h1j1ZrE/h8R7CXuTgdt/VgUw1W4iXzgs5YoBjZoE7kU9NnI5MD2xCGI/R0sJZI8XpgNuCFracd6NuTvemY/mGnU= Content-Type: multipart/alternative; boundary="_000_d7c5174c3fec4336af76ebfbd0ba3a00emailandroidcom_" MIME-Version: 1.0 X-OriginatorOrg: oliver.agency X-MS-Exchange-CrossTenant-Network-Message-Id: aa2cf673-96cf-4ede-7582-08d6e7b55749 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2019 23:52:15.7783 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e519c2e6-bc6d-4fdf-8d9c-923c2f002385 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZahirLalani@oliver.agency X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR06MB5345 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_d7c5174c3fec4336af76ebfbd0ba3a00emailandroidcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ah no we did not! Will give that a go next tim Tom Thank you Z On 3 Jun 2019 00:18, Tom Lane wrote: Zahir Lalani writes: > We have done pg10 upgrades from 9.6 on all our environments successfully.= We have an automation script that does this for us. One environment is a n= ear replica of our production setup and all works fine. > We have now made 2 attempts at doing this on production - both ending up = with rollback > The key issue we have is that all queries were incredibly slow. The PG 10= postmaster workers would all show 100% cpu, especially on the replicas. We= even increased CPUs but that made no difference. Did you make sure to rebuild statistics (re-ANALYZE) after the upgrade? pg_upgrade makes a script for that, but I don't believe it runs it for you. regards, tom lane --_000_d7c5174c3fec4336af76ebfbd0ba3a00emailandroidcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Ah no we did not!

Will give that a go next tim Tom

Thank you

Z

On 3 Jun 2019 00:18, Tom Lane <tgl@sss.pgh.= pa.us> wrote:
Zahir Lalani <ZahirLalani@oliver.agency> wri= tes:
> We have done pg10 upgrades from 9.6 on all our environments successful= ly. We have an automation script that does this for us. One environment is = a near replica of our production setup and all works fine.

> We have now made 2 attempts at doing this on production - both ending = up with rollback

> The key issue we have is that all queries were incredibly slow. The PG= 10 postmaster workers would all show 100% cpu, especially on the replicas.= We even increased CPUs but that made no difference.

Did you make sure to rebuild statistics (re-ANALYZE) after the upgrade?
pg_upgrade makes a script for that, but I don't believe it runs it for
you.

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