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 1uSIVR-005rwn-MN for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jun 2025 16:52:54 +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 1uSIVP-00Cx60-OE for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jun 2025 16:52:52 +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 1uSIVP-00Cx5r-Aj for pgsql-hackers@lists.postgresql.org; Thu, 19 Jun 2025 16:52:52 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uSIVN-002vFj-2N for pgsql-hackers@postgresql.org; Thu, 19 Jun 2025 16:52:50 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-234f17910d8so9179885ad.3 for ; Thu, 19 Jun 2025 09:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1750351969; x=1750956769; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=o8jYN6UD0pUDBoHCa8cJXQ3JhzQqqtMwT85hjy/uaMA=; b=s/eWEHhIMt9neqA1vrOsAouHqRkzSieNCMU9EfNVbHlXPk9qA/rnU7ynWml1RoEQPy S3c4ObLrM/09R0tS8dDB5r0xemh5W7D6nbMtBWgXm3Ai09xg+TN21LQbhVN7DDf5LbSf oQcrbEpn9XsMbKyV2sFRWT8ApbWw+Jl57we4EgWyyfFiGzthephFu5q6mgo+1tyok3Fm 9HfaoUPn0cWyEaEv35diK+AZZklfm8A8B+EgaTfZ9cXpiDBvkjmRehYFEyzRQWePikyd ZT/Zu1lyDp3/+uwuAriDJfQKcCxjxwx/apwPXGI5xxyxi5ew62FqLXhqq/q9waZyVAiy 3beg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750351969; x=1750956769; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o8jYN6UD0pUDBoHCa8cJXQ3JhzQqqtMwT85hjy/uaMA=; b=rL2uTf+6497dj9Xag0P2zTHi/yUbquD6kCD/WcmD8Vgt4L9vSOJ5W0iyMqGQy0/Ccm yET4xL6dMRlHDr2vF5hLsnImxOpR8K0XqYnPLf+qEb70FpTh1pYME3im4kjAVaC/3FCB gVTGWXoZEijD4UxQWb07wU/eUcWMYYA6SQeCWAHKNDjg9zdg71EsPvqFMkokun8FgJfd lzpYCVqSUJx5uU9/N08oSV2Y5H0A3+il4kJ3JKgI5arhKXRFNzkSyPh5WC0aXS9/9bq4 sdq7IspCnRKacnRp8agHCQmM7TLV/VdJfAeuR6gH08CT6CwJYW3xSSRawraSDFzF/j5D WuZw== X-Gm-Message-State: AOJu0Yz73j5oPQlwNykW6Y+S9bl+ryZlmpRIflUm5quruzs4nGw1EJ7B vyCPQqWKwyYRFcEFSey2hBtaeBIFFnz1QQMAcZDNEbhGqn2pocP6tcDmOIIRPAVXkg== X-Gm-Gg: ASbGncvEd8nVlUeidbYQKXWEyIKaW1ZHO6eq9km/632bTLsTFvVSRgHTj0hKAZgb2Z7 JjS+k2AZ5gyc5XxKXs1beeB/NkWWuQT47fbqLuMNIoU9v3tllDnOHCEhJIbeJrxoQ7Fyhdt2MmH TkHIFi3/Fxf984hfZxP8saKF1HbaBwPCiLht+wYqqubNr3FWWaOJAvGDmuJ8oerVYcrMHvDysy6 1rLMCvQEguWwtly+09/tKII+NG6QiJTE26M53nJ/C/UAzFhtREohE7bJ0DQMYbj4h6DZaS203uO aa4tVGSBRJuUB4828j0B9tHl+dXmAUJEM3k6uU2A57BuApNGgMzbUsj9veVdbZx62YpIPy/l1+t nMNJE9a3RCzu20W10HX3plkCPtysu8Jo+ X-Google-Smtp-Source: AGHT+IFzi0dAIPNIGQO3mzR4oJAgs6FqfBkHvRps6d3DWrHgVZ6/68vMUxO75hHoK0TzW/dK6CQMsQ== X-Received: by 2002:a17:902:e943:b0:234:f6ba:e68a with SMTP id d9443c01a7336-2366b17b02amr331882525ad.45.1750351968993; Thu, 19 Jun 2025 09:52:48 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2365deb0fb6sm121704805ad.141.2025.06.19.09.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 09:52:48 -0700 (PDT) Message-ID: <7288394fff1c354f6bda8918d64840595bab0477.camel@j-davis.com> Subject: Re: Add CASEFOLD() function. From: Jeff Davis To: Vik Fearing , Peter Eisentraut , Joe Conway , Ian Lawrence Barwick Cc: pgsql-hackers@postgresql.org Date: Thu, 19 Jun 2025 09:52:47 -0700 In-Reply-To: <7ee0ad52-650b-472f-82f4-27d2cf1a0887@postgresfriends.org> References: <47716a78-eb0b-4728-8991-fc0d958a01c9@joeconway.com> <36f69fa9-db3f-44a1-8c8a-95ff09704a9c@postgresfriends.org> <3e0eaadb-8a1a-49de-8037-3c9123f99031@eisentraut.org> <7ee0ad52-650b-472f-82f4-27d2cf1a0887@postgresfriends.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-06-19 at 18:21 +0200, Vik Fearing wrote: > >=20 > > The SQL standard also says in a few other places that normalization > > should be applied, and we do none of those, so this is probably not > > a=20 > > reason to change CASEFOLD at this point. > >=20 >=20 > Works for me. Sounds good. We can document compatibility notes around this point. If normalization becomes important, we can take the time to work out the performance implications more carefully, and potentially introduce an NCASEFOLD() if needed. Regards, Jeff Davis