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 1ot8hy-000593-7M for pgsql-general@arkaria.postgresql.org; Thu, 10 Nov 2022 14:39:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ot8hx-0000sn-0r for pgsql-general@arkaria.postgresql.org; Thu, 10 Nov 2022 14:39:09 +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 1ot8hw-0000se-Kj for pgsql-general@lists.postgresql.org; Thu, 10 Nov 2022 14:39:08 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ot8hu-0004wh-7B for pgsql-general@lists.postgresql.org; Thu, 10 Nov 2022 14:39:08 +0000 Received: by mail-oi1-x22e.google.com with SMTP id t62so1960637oib.12 for ; Thu, 10 Nov 2022 06:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8Ndn4QDbr0cU6SgiVrweVB7ywfb2GyVA6i9QaQjLDOQ=; b=UrGU5jGxgYy5Sc1cjxyMj7h0/qkerlfv9KtrTLjvbM9rTURwkEPj+8oviAJtvpmdtM yj16YcaYlL0Xm2G4reWrczXNICwBBMj6uxGV7Pn544iaNSA9hKPk6XT4+wvuj8IAdVW6 F92JU7sDVsambXjYRmthIfqYgFdEqfZ1imeeUCzIT839/w0/K6mr0J44/DoRzTc8/aX4 /aIRHYN6L0hP7EcVNjvg3W4nniah8EqLhwdURB3XLAxyw3Fr5fEDJeyT0JDbGnhukVWh jZ/XdKDBa0+Zad74/APqvFwrDY+eauOf166akdiAZWJr/NiQ3+QEq/wDrCzDHATmYTJO eotQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Ndn4QDbr0cU6SgiVrweVB7ywfb2GyVA6i9QaQjLDOQ=; b=07SOQcQA2QEJ0S3bxcem+6PyYEQeDmxKKSwp6p82QuAYnOK1/tX7qwGkUma79gpMva cBbVx4WbMXASiVmkzPMnelCS/zadooFaBzZ8X63O+X/OoH+4PtNykuo3iwlKaND48ZML w9Hm5jiqflBzGfZE5WAtm32BA2OjUQgtQSfPSHTuZXDmx7O54Fl2npK7VrxFSdrt2NLB wIbwIboQB/WgTgcJ37hn/D91nd5qg/Gu63ANLD36A27PxhcZADdspG/y+TkWxufFiXxF emYtLDm3LYXhCwcV51keAlCf4bdzt+MWensPAzrz99epu7MY5+CZlbE2yKWaTN3NkLFF cnCA== X-Gm-Message-State: ACrzQf1+Yc60PI1fY4i+5twEljiD6+xSvooxgeQLQBHmD3AgkH+8IE8i BBZNwz1ddxM2bKGV/6zPBuO86W+BwVo= X-Google-Smtp-Source: AMsMyM4d6xrFhyiaX8jN5ZOtQjFxR8IKqkFAye8m3JYkw1Mmol8aDUMtHjLaW0B1iIESXA69OLgzDQ== X-Received: by 2002:aca:1019:0:b0:359:e535:bf92 with SMTP id 25-20020aca1019000000b00359e535bf92mr35392765oiq.90.1668091144250; Thu, 10 Nov 2022 06:39:04 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id g20-20020a4ab814000000b00480fd9f311esm5226922oop.13.2022.11.10.06.39.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Nov 2022 06:39:03 -0800 (PST) Message-ID: <3515c6ba-0487-1ead-ef3d-84541767f370@gmail.com> Date: Thu, 10 Nov 2022 08:39:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: Q: documentation improvement re collation version mismatch Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <20221110083322.cqztec3ruvadzfpi@jrouhaud> <20221110143329.nkwdoue3yrspnbj6@jrouhaud> From: Ron In-Reply-To: <20221110143329.nkwdoue3yrspnbj6@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 11/10/22 08:33, Julien Rouhaud wrote: > On Thu, Nov 10, 2022 at 08:04:37AM -0600, Ron wrote: >> On 11/10/22 02:33, Julien Rouhaud wrote: >> [snip] >>> For now, the only safe way to go is either reindex everything, or everything >>> except some safe cases (non-partial indexes on plain-non-collatable datatypes >>> only). Usually, those safe cases are usually enough to avoid most of useless >>> reindex activity. >> In this situation, I queried for all indices with text-type columns >> (including UUID) and reindexed them. > That may work in your personal use case, but it's not generally safe. I hope > you don't have partial indexes, Aren't partial indices listed in pg_indexes? > expressions or functions that internally relied > on collatable datatypes, No such indices. > or indexes on other plain collatable datatypes. What other data types besides the text types are collatable? -- Angular momentum makes the world go 'round.