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 1ohtjQ-000593-Ji for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 14:26:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ohtjP-0002t8-Ch for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 14:26:11 +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 1ohtjO-0002qd-Az for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 14:26:11 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohtjI-0005OM-KN for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 14:26:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B54535C00BF; Mon, 10 Oct 2022 10:26:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Oct 2022 10:26:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1665411963; x= 1665498363; bh=U2e9Zqs4SaKCU8ZJkZCmOIRGczKiZHMzTpKV/3I7Vgk=; b=W 9jdNOjqyLt78yqbu1tULTdFeZbgeMuPi9zdJOdXwIM/vucePKWMPJB354bVwqOVj TK4pkT8WJAsng3BlRphy09pGLiRmhEpshS++ArAVgFxFB6Ss0awE2Y8KqC4UnBLy Xda6Nln1u7kOqbiLPwsEhEOPtTAhDAlxXWyQUKacBjTAWxYYEvzVsopdYld5p9ev nF0nAJtKho6rPYWerv2cx295cbZdXggCbdiI9ZZczlx+QT3W6LdUhb7dLqAzDCYA wVtMV3tMnnofUupbxO38Vz3+wk2Aw/z9gMB7U96fFl969KSRdBYif2+fVPJEcLEY kpl+QpnqgTWCj+GBAogxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665411963; x= 1665498363; bh=U2e9Zqs4SaKCU8ZJkZCmOIRGczKiZHMzTpKV/3I7Vgk=; b=c nMq7yFodb1yXGpWPHBBS5oVEGhIx8W0Rae7H4mEvwPO8fAA/2N7lBGRKeHC7em/y LCEkxkRspgCYPtoBsnpaRfL8RoGJ60dRu5LU1cYbxbL7W3olg+wd+j8I7NbuvC85 sZTopPkTl0prACghusELnuC2ZXX4yDB3fiPn+JIKYcr+FEBseN9aKYR9IWc0I6eS ahFh3JGdjAxMdbt4zO5tEwSAWatz5kGOa2ii/2bT5Sr0XphzYaWABhyYOSv3Bkaj rQatTYe8+K1qW07+a9BmpOgbqpRXaATgIr3ElzjLQXHzuEE1IJ5yO2pYg/Hux2x0 LMKAOJ+PDvkfj9Z0BKDhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejgedgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnheptdfgvdfgieekfedtvdffkeevgffgvefggfehleei ledtjeffffffhefgffehvdffnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Oct 2022 10:26:02 -0400 (EDT) Message-ID: Date: Mon, 10 Oct 2022 07:26:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: Same query, same data different plan To: Julien Rouhaud , Kostas Papadopoulos Cc: Daevor The Devoted , pgsql-general@lists.postgresql.org References: <20b3e283-3107-cd18-6e7f-90ed58e7ddf8@methodosit.com.cy> <8da58bc7-a01a-0168-3d49-062258ac82ec@methodosit.com.cy> <20221010131217.7kzur6b63cl2we7y@jrouhaud> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20221010131217.7kzur6b63cl2we7y@jrouhaud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/10/22 06:12, Julien Rouhaud wrote: > On Mon, Oct 10, 2022 at 04:05:42PM +0300, Kostas Papadopoulos wrote: >> Hi, >> >> Yes, I ran ANALYZE in both databases. > > Please look at https://wiki.postgresql.org/wiki/Slow_Query_Questions to provide > more information. > Without the information, as detailed at above link, an answer to this question will be nothing more then guesses. -- Adrian Klaver adrian.klaver@aklaver.com