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 1sOmXM-001ANp-Al for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 23:03:48 +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 1sOmXK-004sIM-9b for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 23:03:46 +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 1sOmXK-004sIE-04 for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2024 23:03:46 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sOmXC-0006bs-Lj for pgsql-hackers@postgresql.org; Tue, 02 Jul 2024 23:03:44 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1fa9ecfb321so30174035ad.0 for ; Tue, 02 Jul 2024 16:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1719961417; x=1720566217; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mManIT+HJafC0uYeNFVbQWensvwR6VkarhNix9sXJzI=; b=aezOBN6d1rPxpAidQNeofgMqcpirey32P9JqS6ryqw8g45aBShxLMRax4Nb5sIXycF nSK3OIBhJxg0628uVPUugkVdNRwwzM8bQkz687sfrnlUn2QvVBK2LrlZLtb4k9NYcarc jrwmW4FhbfT0UOLYI5DmugcGtyPpRdy2sOP4I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719961417; x=1720566217; h=user-agent:in-reply-to:content-transfer-encoding :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=mManIT+HJafC0uYeNFVbQWensvwR6VkarhNix9sXJzI=; b=oqKABdFZdGMmlmA31a6nYL/DsLhqN0mEflYvkXtTSopw2Ja+IDX+ihXv6GV6sW4zLD Scw3vyzL9m+2zdyMpEsEZP1P9jG99SPBqa6udAtjDUQE08Yr1S7lNCNw1kMgifMlpG1T Dk+OrTEmdmXgLL4NdRYt761dRNVF9I/MCe1Xqf+Lk0Ija5qlEyHQJqW0vqjR6j6PbEvc 8Rf5uuN+Ror2ghbBi3Yc/xrYdqnXxv2U0BgF0d2y1DDKrdijFkaNg1r8V6pdmjIRc/23 ULka7AOTgEck0NwBbHs1C2KCydFNwLi90+WUAIwUsrppCuA4mwqfiHGAKaQs7RbQMVy7 Ikhg== X-Forwarded-Encrypted: i=1; AJvYcCXaiRpktKXLwdQDLnDt2B78/FaXcmNCKLylx9BmkpFwdfgr9In/knTgSKsNO8yFvllHM3mqs7FmgPc7z0Vc97Rv4DA6Ni9iESsXfUNf X-Gm-Message-State: AOJu0Yyz6sADlcpq9rXA0gwZk+upQp3+URGAPb4dcXtdNkUPPD3CA5Td 45BvvSRrCoEz74o2mllhFuz0fp5hUmu0e8ukxEvSb4lZfSAfmdPAjwRWpfQ8LQ== X-Google-Smtp-Source: AGHT+IF5O99hka6GItrblVeO//7pJDJIdh51wm+N0Yaww/shOwT7vZ1kZh5L2pvfj2BPZ0SJ/HMLJQ== X-Received: by 2002:a17:902:e5cd:b0:1f9:d99f:61ab with SMTP id d9443c01a7336-1fadbcf410emr79547225ad.62.1719961417488; Tue, 02 Jul 2024 16:03:37 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac1596915sm89634005ad.245.2024.07.02.16.03.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2024 16:03:37 -0700 (PDT) Date: Tue, 2 Jul 2024 16:03:33 -0700 From: Noah Misch To: Peter Eisentraut Cc: Jeff Davis , Daniel Verite , Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org Subject: Re: Built-in CTYPE provider Message-ID: <20240702230333.8d.nmisch@google.com> References: <4135cf11-206d-40ed-96c0-9363c1232379@eisentraut.org> <7451f81ba0cb512222ab759de8ca1cffe44e9acb.camel@j-davis.com> <1f309153-8198-4efa-86dd-8c304ec0040c@eisentraut.org> <20240629220857.fb.nmisch@google.com> <1ecfeb4d2b1b7f119fa917d3052a3aecfaf4f425.camel@j-davis.com> <20240701230352.2c.nmisch@google.com> <20240702165145.af.nmisch@google.com> <1200e97b-3a52-43c6-8b16-20cf45f58249@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1200e97b-3a52-43c6-8b16-20cf45f58249@eisentraut.org> 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 03, 2024 at 12:05:09AM +0200, Peter Eisentraut wrote: > On 02.07.24 18:51, Noah Misch wrote: > > On Mon, Jul 01, 2024 at 06:19:08PM -0700, Jeff Davis wrote: > > > On Mon, 2024-07-01 at 16:03 -0700, Noah Misch wrote: > > > >   An alternative would be to make pg_upgrade reject > > > > operating on a cluster that contains use of $SUBJECT. > > > > > > That wouldn't help anyone. > > > > Can you say more about that? For the last decade at least, I think our > > standard for new features has been to error rather than allow an operation > > that creates a known path to wrong query results. I think that's a helpful > > standard that we should continue to follow. > > I don't think the builtin locale provider is any different in this respect > from the other providers: The locale data might change and there is a > version mechanism to track that. We don't prevent pg_upgrade in scenarios > like that for other providers. Each packager can choose their dependencies so the v16 providers don't have the problem. With the $SUBJECT provider, a packager won't have that option.