Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU6qj-00BgZL-0R for pgsql-general@arkaria.postgresql.org; Thu, 10 Aug 2023 14:41:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qU6qg-00FYMR-9R for pgsql-general@arkaria.postgresql.org; Thu, 10 Aug 2023 14:41:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU6qe-00FYMJ-Gu for pgsql-general@lists.postgresql.org; Thu, 10 Aug 2023 14:41:14 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU6qX-001dF5-Al for pgsql-general@postgresql.org; Thu, 10 Aug 2023 14:41:11 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id EC8FF3200907; Thu, 10 Aug 2023 10:41:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 10 Aug 2023 10:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type: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= 1691678462; x=1691764862; bh=LG2QuatgtkADJ5vQ4n/WUhcOJ4oVZr4N1kE Gsf2mdLo=; b=BrNh67WPZO327MvLB/8nAxNLpOIDTJtVRMyOf80Utmp48gvxkIu LJSeypneDOz1U97PgZu8q6SDUTrdTTr6HYrpsA/Ni3vfwYb17kedXUPiZ/jr4How R0Zsd0mNbE6SuoIf9TUiI1cp7T5Naq9d4Uy85+Dr5+1nAEHfneoqbP1miEoZIcHs QOkBAzoCpa7WVKVkkKn2QK2NDm3a0sxxnIift/eNV6ZxGca2jeQYlbc9RErv9Noi whdfmXK0z56EEkgUtL0n+6J0xNsV4sIyzSQ1rVMZbgHYlTSVMlWp9BuL6A2Aw3yS zU3Np9l2rX+jSJU5dddhLDIgHOpDUlflpmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=1691678462; x= 1691764862; bh=LG2QuatgtkADJ5vQ4n/WUhcOJ4oVZr4N1kEGsf2mdLo=; b=x 5dSc6N6VJOk4Vmn5P4JgJNuv2oIeM2fgiBzTJLHC12yK6+GI+v69l1+Ina4kI+LL vy81quu3mZ1dtvrYZl4Ixn/PVRULB50MVpU/Xs3iRCUD7EF7kZUttJmkDwJw1TQa HxaYFdo2Yc+jThyrwftoqPD3Y0av7zbU6naAwy9YYm+s5Mvc/Xf8R2Xew86nw2C8 26FgnEwncR/yxfUA0jk7s4s9zsg+JlC+5xBD0gnqwvMLXA+ogKv5uDJ1Cg9orgXK sxWPfNkrjyIl6SwRmBa9y12dkVQLH1ny+AGYnChdC23ZC5IlJpb9fnn5tjfCuUgv zLgh8A9S/amF7sGJ5EotQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeigdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedugfeuleegve ffhfegleejhefhtedtgeeileeggfehfefffeevgeejtdeutefftdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Aug 2023 10:41:01 -0400 (EDT) Message-ID: Date: Thu, 10 Aug 2023 07:41:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: PgSQL 15.3: Execution plan not using index as expected To: =?UTF-8?Q?D=c3=bcrr_Software?= , pgsql-general@postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/9/23 01:14, Dürr Software wrote: > Dear list, > > i have a strange problem when migrating a DB from version 9.3.4 to 15.3: > An index which seems perfect for the query and is used in 9.3.4 as > expected is not used in 15.3. Did you run ANALYZE on the 15.3 database after the migration? -- Adrian Klaver adrian.klaver@aklaver.com