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 1sXJ9E-003Ah8-TU for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jul 2024 11:30:08 +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 1sXJ9C-00A6lm-LY for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jul 2024 11:30:06 +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 1sXJ9B-00A6le-U8 for pgsql-hackers@lists.postgresql.org; Fri, 26 Jul 2024 11:30:06 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sXJ98-001XgE-MP for pgsql-hackers@postgresql.org; Fri, 26 Jul 2024 11:30:04 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1fc65329979so4808205ad.0 for ; Fri, 26 Jul 2024 04:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1721993401; x=1722598201; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=7VJoy7U/lPhJeTOqt++w7Wm4BkYLwIfvSkvmdOBcI5w=; b=DCbNe9S8yjyQ1gq7VTvOHQEyiqNsnMFfqwih44BEcPQ+NSJUdRlbNou4Tq9qp290F/ YcwUSNZoJ5vS1EExkzNlqBYnZhQIyxmOB1ycco87gFOZnlepeXPgfwJbCzkeq/KQ3vxG pbkooMxWaVJQrpCuWcSTb13BUQQCjmjWG318c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721993401; x=1722598201; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7VJoy7U/lPhJeTOqt++w7Wm4BkYLwIfvSkvmdOBcI5w=; b=r87AdBMLpuCcPPFOJD60kAJeQ+gsVtBE3UNMfaQQxUD3RD+QftszhUnYPhJ4k+pNIl r35+VMoOTm1srDJdt8xVbd4OYIYMnhIcpHzVrdkwPS/xMW5Eg2M/HaWY6Jqf6+vHlWmD y6sNge+SxNWZyMXrmQjRQP7eBGtZ/e2m0wtrQVQlaI881yd5AzdRgOtOwucykJ1I2Q/E xEknQ3XEB8PHCIePq+e7cF5GVRB/CVucxMX1XU5WkCHkaJkqpIRTnOBDe4uayRdbVEWV T98MWyJQy1ZSQ9UTfb+WH5n9+VUSTCn3LSxCo5HSm6MumhGb8Nm6PAgHf6F7/zKGjegu TOOw== X-Gm-Message-State: AOJu0YzE4vuphIQkfDTWzKOE1hDCwLnmhG+HCRTRtXRd0TEseraOqCm6 pFE3QO6r5PfHhEFeehVhAQsf6XGDyff6oXKA0LRuOtHEzyT+y1lmNLCgYzoNE+gtnF60PUd78jP gpQ== X-Google-Smtp-Source: AGHT+IGBgLa3CtV1EBxgupRVdhejufgQM2M7XhsGMCJgO+3tAjMlz6+LLvcVzX0h0/VZ5+rifdLjKA== X-Received: by 2002:a17:902:cec3:b0:1fc:5f3a:4d9a with SMTP id d9443c01a7336-1fed937eaa0mr59529615ad.58.1721993401057; Fri, 26 Jul 2024 04:30:01 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7cbf5c4sm30725985ad.68.2024.07.26.04.29.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2024 04:30:00 -0700 (PDT) Date: Fri, 26 Jul 2024 04:29:58 -0700 From: Noah Misch To: pgsql-hackers@postgresql.org, Jeff Davis Cc: Tom Lane , Robert Haas , Daniel Verite , Peter Eisentraut , Jeremy Schneider Subject: Re: Built-in CTYPE provider Message-ID: <20240726112958.06.nmisch@google.com> References: <20240704212641.c4.nmisch@google.com> <1d178eb1bbd61da1bcfe4a11d6545e9cdcede1d1.camel@j-davis.com> <20240706195129.fd@rfd.leadboat.com> <564325.1720297161@sss.pgh.pa.us> <20240709010545.8c.nmisch@google.com> <39a30bd36198b44ed40da271ef96a72d133c32ba.camel@j-davis.com> <20240711125040.11.nmisch@google.com> <1908b19c0a3a210935608635cad1b4eeb819c66f.camel@j-davis.com> <20240717220326.df.nmisch@google.com> <20240724151913.5d.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240724151913.5d.nmisch@google.com> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jul 24, 2024 at 08:19:13AM -0700, Noah Misch wrote: > On Wed, Jul 17, 2024 at 03:03:26PM -0700, Noah Misch wrote: > > vote one way or the other on the question in > > https://postgr.es/m/20240706195129.fd@rfd.leadboat.com? > > I'll keep the voting open for another 24 hours from now > or 36 hours after the last vote, whichever comes last. I count 4.5 or 5 votes for "okay" and 2 votes for "not okay". I've moved the open item to "Non-bugs". On Wed, Jul 17, 2024 at 11:06:43PM -0700, Jeff Davis wrote: > You haven't established that any problem actually exists in version 17, > and your arguments have been a moving target throughout this subthread. I can understand that experience of yours. It wasn't my intent to make a moving target. To be candid, I entered the thread with no doubts that you'd agree with the problem. When you and Tom instead shared a different view, I switched to pursuing the votes to recognize the problem. (Voting then held that pg_c_utf8 is okay as-is.) On Thu, Jul 18, 2024 at 09:52:44AM -0700, Jeff Davis wrote: > On Thu, 2024-07-18 at 07:00 -0700, Noah Misch wrote: > > Given all the messages on this thread, if the feature remains in > > PostgreSQL, I > > advise you to be ready to tolerate PostgreSQL "routinely updating the > > built-in > > provider to adopt any changes that Unicode makes". > > You mean messages from me, like: > > * "I have no intention force a Unicode update" [1] > * "While nothing needs to be changed for 17, I agree that we may need > to be careful in future releases not to break things." [2] > * "...you are right that we may need to freeze Unicode updates or be > more precise about versioning..." [2] > * "If you are proposing that Unicode updates should not be performed > if they affect the results of any IMMUTABLE function...I am neither > endorsing nor opposing..." [3] > > ? Those, plus all the other messages. On Fri, Jul 19, 2024 at 08:50:41AM -0700, Jeff Davis wrote: > Consider: > > a. Some user creates an expression index on NORMALIZE(); vs. > b. Some user chooses the builtin "C.UTF-8" locale and creates a partial > index with a predicate like "string ~ '[[:alpha:]]'" (or an expression > index on LOWER()) > > Both cases create a risk if we update Unicode in some future version. > Why are you unconcerned about case (a), but highly concerned about case > (b)? I am not unconcerned about (a), but the v17 beta process gave an opportunity to do something about (b) that it didn't give for (a). Also, I have never handled a user report involving NORMALIZE(). I have handled user reports around regexp index inconsistency, e.g. the one at https://www.youtube.com/watch?v=kNH94tmpUus&t=1490s