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 1iwwET-0007ru-OU for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 22:54:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwwES-0006hS-AE for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 22:54:48 +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 1iwwEQ-0006hK-LO for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 22:54:48 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwwEM-0005Ta-5f for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 22:54:46 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1F25521DC6; Wed, 29 Jan 2020 17:54:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 29 Jan 2020 17:54:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=W uxwLyLYK4PGGSZZ65t0JyDh1qkFUrKeXUAwgPxulYE=; b=Uw9S41GADo/lUG3ba wCGOUQhFP9gAb1KkymOtWD8t4oF+0U8sO9xHUR4X7xDOPzSfNwCdJGT0ctNJhJrR m/MzoPbbdvhK6naRs04dyeQztJkOirijbPAKkbB1J86RA4mvnU7Hss6OpY4KzB1d Usbbb1vILseuL6R4/tJ+0QsKZVYlwJ9dAwtG4nj19nCQeMzj4wOt2RYslvI7bE9T NRQnFFCnQiitEaPk4CbLjlmLHMPWtNbsEBx9sTEEcUJuFVBrOFkYCSCWR683vDq3 VLyLNPmOZIBVVct8uvLxgp+ZYTn4E02mMLi6fstjBRa1xtU/ORvWRa9WZoZ4GlzV heSTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=WuxwLyLYK4PGGSZZ65t0JyDh1qkFUrKeXUAwgPxul YE=; b=RitWNAU6Cg+zNPQpk7sbTaP2itSU0oniOzQrPZ/vYfKTwbbj421mT/gyL D6PJjnqnMhZvBI+h/z/LpItn+mpxV1Eve9EB/3/QjBU6VErCGmZdtiHDg9v05ha8 dvGipnd0SF9i8qhIvSqfJ51xpdxPF74CQAwWRIpO5NYXrB5CY+oN5NwtA5Omrthh fwtudgj9LfHztfjR05ThHeGohUGW7q7xp2yf2k19VXhGlaBgDJv6PJ5Mzvi0vsTD shJxshQ37Lsz5Xh9p7nD2LwP+yKzWty0cLbNlQvmvkKHP8i1hqOlHR4WiXr3MVRb /HxPfuMHov51VInlYsC9qKwjbQu8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrfeejgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjedurddvuddv rdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 494C53060C21; Wed, 29 Jan 2020 17:54:39 -0500 (EST) Subject: Re: Performance Issue after upgrade from 9 to 11 To: Perumal Raj , Tom Lane Cc: "pgsql-generallists.postgresql.org" References: <29032.1580322151@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <8ce284a6-62c5-0d1d-d20f-162f53c242c1@aklaver.com> Date: Wed, 29 Jan 2020 14:54:38 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: 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: Precedence: bulk On 1/29/20 1:58 PM, Perumal Raj wrote: > Hi Tom /Adrian, > > Issue is not specific to a table or particular Query. Also there is no > change in DB parameter after upgrade. You obviously are seeing some difference, so pick a query and do an EXPLAIN ANALYZE on it. Without some actual performance data this issue is not going to be solved. > > That the only way i can make it most of the the query to run as like > before upgrade. > > Note: > Some web reference says , Engine will take some time to adjust until it > runs autovacuum . The above assumes you have not done a manual ANALYZE on the database, as ANALYZE is done as part of autovacuum. > > > > > On Wed, Jan 29, 2020 at 10:22 AM Tom Lane > wrote: > > 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 > -- Adrian Klaver adrian.klaver@aklaver.com