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 1p2yT2-0006Gl-OW for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2022 17:44:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2yT1-0005XM-9C for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2022 17:44:23 +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 1p2yT0-0005QD-SO for pgsql-bugs@lists.postgresql.org; Wed, 07 Dec 2022 17:44:23 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p2ySx-0007su-JU for pgsql-bugs@lists.postgresql.org; Wed, 07 Dec 2022 17:44:22 +0000 Received: by mail-pg1-x532.google.com with SMTP id s196so17032577pgs.3 for ; Wed, 07 Dec 2022 09:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; 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=dFgUc+RZiBXq4XfYwq7nprryn98ZhtunRQxS1uvtcS8=; b=DpdrwEIr0EtqvxnsDcEk9yFYTxzCQtBoBnX1op58orcuMtwID4wy9ff+n1R/d3rnES L2yAPBsJNCj0ddZ0Y2K3HhXhCGvSUHZBb4vO6FJsWZlBTf9hvOzuqpKvItx+vMYt0F27 AYWk0NFfFfJwTXqhdeiUTANqlE47YoMo8OhpOaYyhMFyCjVB5SQPueTGeyptY7sJPoZH QcDQ5OzCiGUP6FaXxtvxAlTpCfPN2mfozRFshnkDZNXJSzVdnXhyUhdO71+P4e//ZQTL ntvlUnF40MmcMM+VTozZBpqvkjg1riDpT+MPmTNrXYXIaODnuzfc2med6zv/k8weE3zt fbHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dFgUc+RZiBXq4XfYwq7nprryn98ZhtunRQxS1uvtcS8=; b=4Rxv90fz0Xg1BKVhRRAdBM9KcWlV53TXWTdiqj99Vt4Tlohd1rN0gClC/diKn8zleH 5Q3WMxgKLzIL114sXnojOjUoI1xmdce+o5HEc6s7uxIjgxLhgUfFckNU9ZnaKMTGRmGM 2sV66qMgvUnBQ2qTGPyF8YuQYf7RJRsA7bhiEh2o/VdyIFrmUwK8Q+DjxvbuDN6xeLjY /tsQ2SvuX9aGcdglKZUFVdMZBgyLSRbsTQNo729DxYI507Pg0oL7UBvWCGcjEQUPf+U/ NOT+fv2bCfbXyDOKmB6cp6er3nBLSwMoxjmBrYrXlLMcpv+sbOspTWKYpeHYWaEw3rUs AFvA== X-Gm-Message-State: ANoB5pnKvazDIgGugcDIN8o4hL4JfoJM0FHR35t1um7fFV0KmFnVtQ0D Kd0eHSAVM/Isi+r7nabY3XPKlQ== X-Google-Smtp-Source: AA0mqf45G5K8vOavgnk4Sf9c+HlTsoNIzlbLlQ2T9pMWC+JuRkdPVm0fjru/fLvWBM6LLAu81GJQKg== X-Received: by 2002:a63:2154:0:b0:477:b650:494b with SMTP id s20-20020a632154000000b00477b650494bmr63020323pgm.434.1670435056912; Wed, 07 Dec 2022 09:44:16 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id o10-20020aa7978a000000b00574a82bb877sm5900914pfp.203.2022.12.07.09.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 09:44:16 -0800 (PST) Message-ID: <69598b5a07183ea8c6ec20826c1b549db1128070.camel@j-davis.com> Subject: Re: CREATE COLLATION without LOCALE throws error in v15 From: Jeff Davis To: Peter Eisentraut , Kyle Spearrin , pgsql-bugs@lists.postgresql.org Cc: Justin Baur , Vince Grassia Date: Wed, 07 Dec 2022 09:44:15 -0800 In-Reply-To: <428169fe-2eb3-4415-a5be-6f59112f26b2@enterprisedb.com> References: <7b99b4a7fc5284008bae32b77a776d25b4a400bc.camel@j-davis.com> <428169fe-2eb3-4415-a5be-6f59112f26b2@enterprisedb.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-12-07 at 13:04 +0100, Peter Eisentraut wrote: > This was an intentional change because of underlying conceptual and=20 > catalog changes.=C2=A0 lc_collate, lc_ctype, and iculocale are now tracke= d > separately in the catalogs.=C2=A0 This is also important because for a= =20 > database they actually are used separately.=C2=A0 So this also keeps the= =20 > locale/collation settings for databases and collations consistent. That makes sense, but there also doesn't seem to be much harm in supporting the old behavior where it works as long as ctype=3D=3Dcollate. As in my patch, it accepts either locale or ctype=3D=3Dcollate as the icu locale. We can discourage relying on that by updating the documentation as you suggest. --=20 Jeff Davis PostgreSQL Contributor Team - AWS