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 1qsqWs-009k5C-67 for pgsql-general@arkaria.postgresql.org; Tue, 17 Oct 2023 20:19:02 +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 1qsqWp-00DyH3-UM for pgsql-general@arkaria.postgresql.org; Tue, 17 Oct 2023 20:19:00 +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 1qsqWp-00DyG9-Jh for pgsql-general@lists.postgresql.org; Tue, 17 Oct 2023 20:19:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsqWj-000yRa-Fj for pgsql-general@lists.postgresql.org; Tue, 17 Oct 2023 20:18:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39HKIqxk2906199; Tue, 17 Oct 2023 16:18:52 -0400 From: Tom Lane To: Hafeez Rahim cc: pgsql-general@lists.postgresql.org Subject: Re: Index based search have issues with 11.20 In-reply-to: References: Comments: In-reply-to Hafeez Rahim message dated "Tue, 17 Oct 2023 20:24:05 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2906197.1697573932.1@sss.pgh.pa.us> Date: Tue, 17 Oct 2023 16:18:52 -0400 Message-ID: <2906198.1697573932@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hafeez Rahim writes: > Issue : > One of the table query not woks when string values are filtered with = > clause > where as the query works with like clause using '%' flag or using > trim(column) > below are query examples describes the problem You've not really provided enough detail, but I'm going to guess that your OS update included a change in collation definitions that left any indexes on text columns essentially corrupt. The LIKE queries probably weren't affected because they didn't rely on indexes. Reindexing the indexes should have been enough to fix it. See https://wiki.postgresql.org/wiki/Locale_data_changes regards, tom lane