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 1nSE2K-00014f-OT for pgsql-general@arkaria.postgresql.org; Thu, 10 Mar 2022 08:20:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nSE2J-0006ow-BQ for pgsql-general@arkaria.postgresql.org; Thu, 10 Mar 2022 08:20:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSE2J-0006og-1F for pgsql-general@lists.postgresql.org; Thu, 10 Mar 2022 08:20:39 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nSE2C-00082k-LT for pgsql-general@lists.postgresql.org; Thu, 10 Mar 2022 08:20:37 +0000 Received: by mail-pj1-x102c.google.com with SMTP id bx5so4558699pjb.3 for ; Thu, 10 Mar 2022 00:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=L5XAZfsN1oXnrVwHUOAefjjEVhW4qw/FznWtSbpD+Ms=; b=TaXxoFVRAdkEnUuVHWuGs+F+av96lNUBkI/4UISW3KgdFr8xV6ztoi1qIKNEHSN4HI lqD/dkwN1eSz01ySa96/GPaVitLtMmcf5XVcpop+0sdedMQ6OG40izFz7XRhw7TS8HHh cvFv89fqR01EUmece7SUfNTkiKrFgqkJ+ytMZ4Ak63UZ0NSSWbYly2HEdjjJdEzojyYh QD0VBVbq2WbwWsSTQnXijtAVAKEAi/9lxZMPoQA2O0U6t3s0bKvkMi5vnZN5ozeDzfq5 fPaG9JhFKb5/0VxqRTWFfjs+NJgETTtVNO6AS5jh0j7qnrTHKldK8ZIje5JOVJMSeReX zgsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=L5XAZfsN1oXnrVwHUOAefjjEVhW4qw/FznWtSbpD+Ms=; b=urk7LiMCgCMPtae1E4GfanaRisHY1PH1d0gLCQXhgwM9+KUI+5Uu1CTtgjk3rDP39S VpS7BeydhYRvpMk0+iCn3mz8HLg3fHkLFQeaXjREKPXggOyWDf7wcxclZeiNlz3dbVyu qHz8NdSbkMGhy9D6J7xvjWoy5EpvVulRSN21TozsR/uMJ9JdHUvXT23ZNdXMdpz12y/u et8JZdPFtJbTW/x6MvLCbmKKWoPLoptA90mdAsE/tfDV6OO8jvrwDSM8i3q1H4CjK3WW mQL51fqrRHbPao23y5MvnolO4Y0LVBxdrRKstS+/dlzhIC6JneEx74HpQIQ3t2gCPiSS 7HXw== X-Gm-Message-State: AOAM5300BzdTZpP3nQ56qposUvN3PSfSIZyiGN/bJBRk7qQox2xR18v3 HdoZ/wju43yYaANtSEwj93Q= X-Google-Smtp-Source: ABdhPJxA/vdxVoxKQdQFrxPg7DzyPQbkSBqFvaKnFIr1/1/FyqQb9uwagZdPhzyS7ePxKZt8G+8KdQ== X-Received: by 2002:a17:90b:789:b0:1bc:293c:1445 with SMTP id l9-20020a17090b078900b001bc293c1445mr14742054pjz.111.1646900430647; Thu, 10 Mar 2022 00:20:30 -0800 (PST) Received: from jrouhaud (2001-b011-1005-5f87-1de2-53ab-ceaf-3917.dynamic-ip6.hinet.net. [2001:b011:1005:5f87:1de2:53ab:ceaf:3917]) by smtp.gmail.com with ESMTPSA id r1-20020a17090a560100b001bf72b5af97sm5246978pjf.13.2022.03.10.00.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 00:20:30 -0800 (PST) Date: Thu, 10 Mar 2022 16:20:27 +0800 From: Julien Rouhaud To: Scott Macri Cc: pgsql-general@lists.postgresql.org Subject: Re: Simple Query Doesn't Even with Data Message-ID: <20220310082027.iaduvd63rkqcptj2@jrouhaud> References: <24fc9258007f1c08f8801936e2b7bdc8443f40b9.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24fc9258007f1c08f8801936e2b7bdc8443f40b9.camel@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Mar 09, 2022 at 08:40:45PM -0500, Scott Macri wrote: > > If I do a select * without a where clause I get the expected results. > However, when I execute the following select statement I was astonished > to see no results come back. > > SELECT * > FROM public.map_table > WHERE company_letters = 'abcdefg'; It looks like an index corruption, a REINDEX of that table should fix the problem. Did you update your system recently, which may have updated your libc/libicu version, or replicated data over different OS version (which could lead to the same problem)? If yes, it's a known problem and you have to reindex all indexes that uses collatable datatypes afterwards. You can look at https://wiki.postgresql.org/wiki/Locale_data_changes for more details about that problem.