Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln1mi-0002pV-0f for pgsql-general@arkaria.postgresql.org; Sat, 29 May 2021 16:26:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ln1mf-0004at-TU for pgsql-general@arkaria.postgresql.org; Sat, 29 May 2021 16:25:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln1mf-0004ak-Ka for pgsql-general@lists.postgresql.org; Sat, 29 May 2021 16:25:57 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln1ma-0003Sl-54 for pgsql-general@lists.postgresql.org; Sat, 29 May 2021 16:25:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B74325C016D; Sat, 29 May 2021 12:25:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 29 May 2021 12:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=e tHkchhyCwPM5gLUAaewySiTsWrD2tJkDnUGQ7CDTtA=; b=rClQFSgL9iz10s3gk OBvpSeg6vqtisrKeOlTiidbQhfY+vjwABMOBOZXBic64zrAH57lOcYC77PLn1P+f AgDG3uVUggZcYX+7QmlJuwynj0smRT85dkHpNx0ztEWzYDbUO5zXh3vlOhBDvrcq xqcTPRhI2mo3winrbNnkmkCmpvDjknml7QLWD3Uqh8ID+tJ2tFrhJWZNqPfO4cEV wKiEcZb2Mt1jZmZTEC1Mm7nCZ3UrgcGDes2JsoZ2/SqeftysFAHl85xdqv0oKKZX 3BIHjpeuSKQSvTnmz/ZkjFvIJUs1lu0HLQsJ66tqxW8korBqHv2EFxtXx3d9akBG g7YEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=etHkchhyCwPM5gLUAaewySiTsWrD2tJkDnUGQ7CDT tA=; b=RgVAT42pAG6kqvNt9EN0eMOBlqDVSoPXp9zQ+h+0OI2dbPMu3tuN7QTd0 LCXUo9Dgfa7t2FC4XgTwS90YuIhSQatQ4HfqoGnsvR7TUjikEQWXMRDIweXLE7wv lCAfnAy7hsWmT2Pj0haC9w+dt043WImA/Nc1L1sYAwSnpyY10NRaXOwTvia5Q4LW FJ8uBIjdYMa7krP2Y31TYYLv8Frg+Pt/oDJ/yVj5w7yuxKOQA2OxQOrMzV6D6oAW jFGbfnsuAJzG3xLOZq7M5//8JieMnkTANs93Q4Ypu2OlO5AsZ/GAajxSvzOsIp2H soY9o6MRO/UQNF7hUIw7RGCddVm1w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekledguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevffffte fhfedugfekfeetueehteehkeevudekteehueeiieduvdfhuddugefgueenucffohhmrghi nhepuggvphgvshiirdgtohhmnecukfhppeeljedruddufedrvddtfedrkeehnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-203-85.tukw.qwest.net [97.113.203.85]) by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 May 2021 12:25:48 -0400 (EDT) Subject: Re: AWS forcing PG upgrade from v9.6 a disaster To: "Dean Gibson (DB Administrator)" , pgsql-general@lists.postgresql.org References: <3fa6fd38-1f92-98ab-0055-3e0eb7e4e772@ultimeth.com> <2a1b34f4-73d4-585b-f4fc-3bd9b9ba248e@aklaver.com> <88255b75-e7e3-b29c-0e75-f989ea320570@mailpen.com> <70edb767-6ba0-1065-2f74-f01440e3caea@gmail.com> <2b7b9a25-e3c7-b980-a1e3-d21d8d91d34d@gmail.com> <988e2438-c322-c1d5-ca88-683943a80087@mailpen.com> From: Adrian Klaver Message-ID: <1a2f01ce-b3da-3066-0642-3e311587ece3@aklaver.com> Date: Sat, 29 May 2021 09:25:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <988e2438-c322-c1d5-ca88-683943a80087@mailpen.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/28/21 5:38 PM, Dean Gibson (DB Administrator) wrote: >> >> Did it run in less than 10 hours? >> > > The original VACUUM FULL ANALYZE ran in 10 hours.  The plain ANALYZE ran > in 88 seconds. Can you repeat your EXPLAIN (ANALYZE, BUFFERS) of the query from your first post and post them here: https://explain.depesz.com/ Other information: 1) A diff of your configuration settings between 9.6 and 13.2. 2) Are you running on the same AWS instance type for the two versions of Postgres? It is not necessary to repeat the table/view definitions as they are available in the first post. -- Adrian Klaver adrian.klaver@aklaver.com