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 1iwrz6-0000mo-Mq for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 18:22:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwrz5-0006wV-9X for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 18:22:39 +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 1iwrz4-0006vW-WC for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 18:22:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwrz1-0003JN-NZ for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 18:22:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00TIMVjs029033; Wed, 29 Jan 2020 13:22:31 -0500 From: Tom Lane To: Perumal Raj cc: "pgsql-generallists.postgresql.org" Subject: Re: Performance Issue after upgrade from 9 to 11 In-reply-to: References: Comments: In-reply-to Perumal Raj message dated "Wed, 29 Jan 2020 09:39:03 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29031.1580322151.1@sss.pgh.pa.us> Date: Wed, 29 Jan 2020 13:22:31 -0500 Message-ID: <29032.1580322151@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Perumal Raj writes: > We have recently upgraded postgres from 9.2 to 11.6 and started seeing > performance issue immediately and able to fix the performance issue after > disabling parameter: enable_seqscan. > Question : > Should i keep the above parameter always disabled ? If not why the behavior > changed in Higher version ? This is unanswerable with the amount of information you've given. Yes, turning off enable_seqscan is a bad idea in general, but why you got a worse plan without that requires details. https://wiki.postgresql.org/wiki/Slow_Query_Questions regards, tom lane