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 1l0Rft-0000j8-KI for pgsql-general@arkaria.postgresql.org; Fri, 15 Jan 2021 16:10:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0Rfs-0008Ky-Hc for pgsql-general@arkaria.postgresql.org; Fri, 15 Jan 2021 16:10:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0Rfs-0008Kr-9u for pgsql-general@lists.postgresql.org; Fri, 15 Jan 2021 16:10:08 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0Rfp-0000iZ-3E for pgsql-general@lists.postgresql.org; Fri, 15 Jan 2021 16:10:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610727002; bh=usvoA+BdfWzxKIeeA7GilFEUE5L76r+nVEzO4k0hPps=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=heMw+yKWtTy8oxdqFyo/u/dMVTgnDkIS+rcsTC3uX67Wc+TnALKLGvRUAM72dfBTn 4dxSM3O6wKixC3BG8NT/Hadh3IALVqIY3M0Bdg2qpbYC8vHECTzQ/XyrMgf+ua3v+4 jYw+XUzgEzRUd9L7GNpZ7/ihho/4GiECRJ1PPdUQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.20] ([83.171.163.156]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mjj8D-1lkjis3urD-00lGdj for ; Fri, 15 Jan 2021 17:10:01 +0100 Subject: Re: Accounting for between table correlation To: pgsql-general@lists.postgresql.org References: From: Thomas Kellerer Message-ID: Date: Fri, 15 Jan 2021 17:10:01 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:bdUabGiaQePqu+BGciylJ73a4F6i6NvN+4AzPrIASGIseFKDZPy qhLPPgbN15eSAAISx7LpzUACBQGEr+rCpn9W4BPIy8rP5pBILoJLU495CKom4PZIDSPOQ6F SrPsX/KNcjw7hT1SwvICn56kSOfA4G3fl5rA96pi5x0Zpn0WvthJn6anIMy1TdLYsnYaGtj 07LqmACGtJX36mcqbzzCg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2szvRss2qo4=:WZA+nM1nultQAYqMbykXbu YnuwmKXia202JdKLBkJgSgqD7kzJ/w20o6j5Iw83JVYGgdOlQu0NvOyVRct5gBvqpamKZUyDI IpESFfEE4arH5bJ0Y52w4iqvMwQDjhsMHZVKuA1+UBnxwfA0gIN+o6blU0bnvuYHwP2iABGOp HpbzkboC+KINA1bIRZaJ5zHn8n4BVx4El6HrgLdY6hWg4aGjOeEqRjFbrCvpnBDnzdsfjEqU/ sV+YIjlh1N/R1EXBb0ZgrnN7JNsIhait5XoqOeMV7Fmutb+m22UU2AnzxnKe+8GHhSooe2Xa0 LSnVneQXOQ+TIktVn59oOewbNxKjKaQ67yyDS8A4AEK0YKZ7eudI84tg9PbxdtkrHsnNxDuMq +h3tTZFUsS7pSXcJIx/gxp4/kt52Ch6sFvSqPCIFMmgbqiMIZH2s1TxmeVoGfXjt0+ZoVj6Hs byLrPPL3Q/SpT7xou/D4iTDXWB9Pi5p3e+6wgDYJGs/Lo0a/MFBc6yFJx0MOBYFo302JPUG12 kun1zuy0L+i9BIWR2VP7+0E00ThEGfcgn+o768zJn45BnOYoOWb37su1gFvMBo1ordGheaHGW nTRGz06OSB+ADzJyYBQQPeOyOFT+Nxah4kCgAS9G5RYV/E0r1S5nEn/jRAE1pt7ymxDHz4edG 1QowSASnpPw+0Z+opMh8+BugtAuO2QhuMalVvPHWiJ/u4TUiqmDEYTOj8J0IBy/tpI1SaVw7y hhjHHTrL5wMeFbwzpqQG9VfxdlnXNnMH215u+QV5P/4v0uWJZlsg0RGgk7CPZ4bo4iX1i8rJC 1n8vaw3X5+Kuu9yU4lbwzfM8IAa84PZQBCIE+ch/zeq7fThEb2YP44dsLRLJzZgcNTH5ZryZm mMkzWFcGxmxg5NUgc1cw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Atul Kumar schrieb am 15.01.2021 um 16:29: > As per Ron, you are not supposed to ask your questions here. > > As According to him, we should keep on doing research on internet > rather than asking for support directly even you have done enough > research and until unless =E2=80=9CRon=E2=80=9D won=E2=80=99t be satisfi= ed you have to do > keep on researching. Ron's question was perfectly valid. Missing and wrong statistics are one reason for the planner to choose a ba= d execution plan. Maybe there are many "idle in transaction" sessions that prevent autovacuu= m from properly analyzing those tables. Or maybe for some unknown reason autovacuum was tu= rned off. Or maybe they receive a lot of bulk loads which would require a manual analyze. So the question "are they analyzed on a regular basis" is a valid point an= d nowhere did Ron say that the OP didn't do enough research. Ron was merely trying t= o rule out one of the more obvious reasons. Thomas