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.96) (envelope-from ) id 1vkMjI-00E5nV-2y for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 13:34:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkMjH-008EJR-0z for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 13:34:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkMjG-008EJE-33 for pgsql-hackers@lists.postgresql.org; Mon, 26 Jan 2026 13:34:07 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vkMjF-00000000Y1m-0TA0 for pgsql-hackers@postgresql.org; Mon, 26 Jan 2026 13:34:07 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-6610e72112bso1928666eaf.1 for ; Mon, 26 Jan 2026 05:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769434443; cv=none; d=google.com; s=arc-20240605; b=bp9VDVx2HR6nGRSm4Ap6BqgCowbQ+0J7HSYpAlPaSdXEyghvxGbxSn884WAWVq/A7o pTSwhV6ALNOu5z9uwXZzkwe0KU+Y+anQqP1F5cLTeyf/+J2pU2QBy6Kuw9EAj8ApEkYb FPiEY1vtB1WmtsWlYB+lokJhKK617v7VM4MZvjOFj/GEPbJnMu/EFHMaAgt7e38nndgp cpIg11UjjgeH0/uXzpqK43gcje5/vmlQaYcRX41U857M2/przWR813fm/vswxcWUrL3j q9TeikRTNsr+sMVXb3IK9hxawKYD4JDwVVWRrAne+Rdj4Iv8WWhEZIQLvLdrx/Htc+bC 5ffQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OZkWhI9Au02lVbRxgmJWeop3ntzG/F+Uck/Eeqfk0lE=; fh=/zjttEl+EdBZf8FF5/E7Tk6AffcongUaOtYjqL5iErs=; b=HVGUa54KEsBG7wBilKJ0/m0GYK8Z+qYb4LbyLYzVNUyuL1vuvPSNGLYvbv2aePKrag y+poc1NK4LstJZAZUpGfb5fsLb+0udMKEN/mBZqYlBTWezoqGO71yVilvSEBfqWTFDBy FZ6RthEUgTUfIYKP1uxWPNcyyYmHa/xCIQhbZfGRs2F//bAVtreW7l+GfQSc34WDcVbz vQh+e0hvfVd/B5bBu4cjLaFy4oqi6tWrCuA3F4oI6w3kGIIpT2XtBocKgyOdtXKKpdoe ODN0zhoOaai1p6lBjgMQI8IAcSkpUhcfVuSZvwNOMF39lQDgasqhKeRNYkz63L1odMyd m9Bg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769434443; x=1770039243; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OZkWhI9Au02lVbRxgmJWeop3ntzG/F+Uck/Eeqfk0lE=; b=Z7t9rDFpqZPkkeVgrpFUecfwUClXdr9eLV1TLOVf4VuySsse+VjPJGhIbsnSBfW1JP tdBtZhsgP+8o38BV0FZ0fPL2+zCDrQg0Op5habYWx2i/WSb8zn1+Y69SE3hVB6hdB3e8 yH40PImzVF2SybDPmcSt0AqrBE01+u67y9r3+8wCmyd3iP2d2OrAZc4r4hsAPZy2WUpL LznKXw2Ha2nIZxQTAO3b3AOVT7+oi3KIjmmWu5YcUxQxtgxF7XEWoLMUvZwdrKT8mbh3 4buGZd7C8QezvbVEj+yhAGsl+WMaIMMZ0U/+NvTGZ+Rrx6ZxX+BWYWrlmlFlLbwMC9aU Tj1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769434443; x=1770039243; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OZkWhI9Au02lVbRxgmJWeop3ntzG/F+Uck/Eeqfk0lE=; b=C+eI71+VYZttJnF6YelWJXRzt+52yYrzUaPDf1jIT/5z7IyvurzP4lnZsgXoR9TBF+ kaOZw6/htg/lSDpBNAkl9KgE0M5tk4hFhRYTrpXfRVzCNgRxyo4x1QHh6XmMk81nJ0BO xIe2RU/xvmhnH5T+Zg4+lB2ligxKvF/8dS/0/v07JBBKmzPQy0IWlC/7utwu3LBvu/py xYOcefYhQk4bR9WX7kkLn45w2JkP9I/Ef/ny96th13Z3fA7eaDX51wKmsWTeX+QZGJk5 cZddL18IxvMerxLyZilwsEs7sS+lxqR39PMBwOGtVnBn37vUtbGAdGNayb7m8skVYzMa HJtA== X-Forwarded-Encrypted: i=1; AJvYcCXZV/TLjSFdybLV/WhYoqJcy61/FJJLGgfjjax8iRkeIyEMp1f4YH37JgIfpLcnZo2KPNRhpKJ2I+8UXPdw@postgresql.org X-Gm-Message-State: AOJu0YwT2W9odSe0XgGFqi2vgniTYwNY7fD6+ldLuZ3SkOB3zZvZpROf Xlpi2j4Sv7elzd939347iTpVbchw4gWDgNPnYtJxHddKaX0yQz9Nt9+3qR5r+sKZAYp/IZjVeXY wMHij3SQgtroXpBklaI8ht2QOYUZPwwk= X-Gm-Gg: AZuq6aIKRxhNKO9O16keCAhHUtvaL9GVEM7KCctLgGiMElBgUhCIskx5MIIOvDjdMCt 53oKcpE/1BQrJAUbJsp4/yfVNJIL04Ftvlxwo/HASsIWvJZ6hh9vIX98+1zWo8tWNqoAVblyZqv R7pKGRhIBIfHwnGCrHvtVen9zNOm79y9y0hvENSUPdIK2Tfmn6yXEed6rjNSRmd0K7uv28SJ7gh 1QSpBH8S+h2lDDrud9Al4dPibk+SaT/TkI3EwHwqr1hivKYOupakXRrOchjWfF+MvSLfeKFM2jl Fc9UcVsv2F14Ao5kRz2URE+DfZiVLJf04qbnLzZlpIDc6X0YEc3Ot2jCJInN1mgXSSTB+GHLxvn INdwfOmCgbpKOm11+4eDlXy34/b6T X-Received: by 2002:a05:6820:80c:b0:65d:286f:6236 with SMTP id 006d021491bc7-662e044d54bmr2109527eaf.52.1769434442764; Mon, 26 Jan 2026 05:34:02 -0800 (PST) MIME-Version: 1.0 References: <1981b5f0-7d06-4911-a231-23bbb6bf504c@gmail.com> In-Reply-To: From: Alexander Korotkov Date: Mon, 26 Jan 2026 15:33:50 +0200 X-Gm-Features: AZwV_Qihg11DCi3ZJRIKXEo8TfIBJAsrJnRAAaI90vas_zPW8NFxJyQPEXSElkY Message-ID: Subject: Re: Use correct collation in pg_trgm To: Zsolt Parragi Cc: David Geier , pgsql-hackers , Heikki Linnakangas , Kirill Reshke Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi! Thank you for working on this. On Mon, Jan 26, 2026 at 3:24=E2=80=AFPM Zsolt Parragi wrote: > > > While reading through [1] I realized that the word boundary detection > > also uses the wrong collation. Patch 0002 fixes that. > > Good catch, I considered checking that when I reviewed the patch, but > I thought that it would be an issue with CJK languages, and I was > completely wrong about that. > > Updated patch looks good, I only noticed two minor things: > > * the new test should have a newline at the end of the file > * and probably a conditional skip based on locale availability, the > citext_utf8.sql test case does something similar I wonder about existing indexes, which already use default collation not column collation. Should we add a release note saying they might be obsolete? Alternatively, given we now have opclass options, we may add a new opclass option defining whether to use column collation (must be false for existing indexes). ------ Regards, Alexander Korotkov Supabase