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 1ln5P6-0002LP-90 for pgsql-performance@arkaria.postgresql.org; Sat, 29 May 2021 20:17:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ln5P5-0001Zc-5Y for pgsql-performance@arkaria.postgresql.org; Sat, 29 May 2021 20:17:51 +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 1ln5P4-0001ZU-TV for pgsql-performance@lists.postgresql.org; Sat, 29 May 2021 20:17:50 +0000 Received: from aws.mailpen.com ([52.43.43.172] helo=aws2.mailpen.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln5Oy-00059m-4Y for pgsql-performance@lists.postgresql.org; Sat, 29 May 2021 20:17:50 +0000 Received: from [172.20.70.208] (unknown [50.35.114.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by aws2.mailpen.com (Postfix) with ESMTPSA id A028FC7E7D6 for ; Sat, 29 May 2021 13:17:40 -0700 (PDT) Subject: Re: AWS forcing PG upgrade from v9.6 a disaster To: pgsql-performance@lists.postgresql.org References: <88dec70b-eb63-0b72-0b5d-253851ef127b@mailpen.com> <163214e4-0588-230b-9ed5-f682087e0e18@wi3ck.info> <4e238cc5-f63e-0435-63bf-2515500d5424@dunslane.net> <20210528213052.GC5649@momjian.us> <40d30a5c-ae45-3caf-f74a-f091e8ad0a2c@yandex.ru> From: "Dean Gibson (DB Administrator)" Organization: UltiMeth Systems Message-ID: <82627a7c-98ca-b60c-c49a-0f1ca132a639@mailpen.com> Date: Sat, 29 May 2021 13:17:40 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <40d30a5c-ae45-3caf-f74a-f091e8ad0a2c@yandex.ru> Content-Type: multipart/alternative; boundary="------------2598C1860DEFA39395C5CAF1" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------2598C1860DEFA39395C5CAF1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2021-05-28 22:24, Alexey M Boltenkov wrote: > On 05/29/21 07:08, Dean Gibson (DB Administrator) wrote: [deleted] > > BTW what is the planner reason to not use index in v13.2? Is index in > corrupted state? Have you try to reindex index > "FccLookup"."_LicStatus_pkey" ? > > 1.5M of seqscan's are looking really bad. > >                      SubPlan 2 >                        ->  Limit  (cost=0.15..8.17 rows=1 width=32) > (actual time=0.006..0.007 rows=1 loops=55) >                              -> *Index Scan using "_LicStatus_pkey" on > "_LicStatus"*  (cost=0.15..8.17 rows=1 width=32) (actual > time=0.005..0.005 rows=1 loops=55) >                                    Index Cond: ("_HD".license_status = > status_id) > > > SubPlan 2 >                        ->  Limit  (cost=0.00..1.07 rows=1 width=13) > (actual time=0.001..0.001 rows=1 loops=1487153) >                              -> *Seq Scan on "_LicStatus"*  > (cost=0.00..1.07 rows=1 width=13) (actual time=0.000..0.000 rows=1 > loops=1487153) >                                    Filter: ("_HD".license_status = > status_id) >                                    Rows Removed by Filter: 1 > Doing your REINDEX didn't help.  Now in the process of reindexing the entire database.  When that's done, I'll let you know if there is any improvement. --------------2598C1860DEFA39395C5CAF1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 2021-05-28 22:24, Alexey M Boltenkov wrote:
On 05/29/21 07:08, Dean Gibson (DB Administrator) wrote: [deleted]

BTW what is the planner reason to not use index in v13.2? Is index in corrupted state? Have you try to reindex index "FccLookup"."_LicStatus_pkey" ?

1.5M of seqscan's are looking really bad.

                     SubPlan 2
                       ->  Limit  (cost=0.15..8.17 rows=1 width=32) (actual time=0.006..0.007 rows=1 loops=55)
                             ->  Index Scan using "_LicStatus_pkey" on "_LicStatus"  (cost=0.15..8.17 rows=1 width=32) (actual time=0.005..0.005 rows=1 loops=55)
                                   Index Cond: ("_HD".license_status = status_id)


                     SubPlan 2
                       ->  Limit  (cost=0.00..1.07 rows=1 width=13) (actual time=0.001..0.001 rows=1 loops=1487153)
                             ->  Seq Scan on "_LicStatus"  (cost=0.00..1.07 rows=1 width=13) (actual time=0.000..0.000 rows=1 loops=1487153)
                                   Filter: ("_HD".license_status = status_id)
                                   Rows Removed by Filter: 1


Doing your REINDEX didn't help.  Now in the process of reindexing the entire database.  When that's done, I'll let you know if there is any improvement.
--------------2598C1860DEFA39395C5CAF1--