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 1pygJv-00022s-AI for pgsql-bugs@arkaria.postgresql.org; Mon, 15 May 2023 22:05:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pygIv-0005Vn-7O for pgsql-bugs@arkaria.postgresql.org; Mon, 15 May 2023 22:04:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pygIu-0005Ve-Vr for pgsql-bugs@lists.postgresql.org; Mon, 15 May 2023 22:04:28 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pygIq-0000aD-MU for pgsql-bugs@postgresql.org; Mon, 15 May 2023 22:04:27 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-52079a12451so9601125a12.3 for ; Mon, 15 May 2023 15:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1684188263; x=1686780263; 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=PptnVANtMk3Wu1vsIW9uX4GnsMt+0bdT3mCQ5mEakAI=; b=df6cUL1lfMqeuknrk5MiZEaPq+xi745VpSGe5LnKCXLykn77u8ZslTLW+qKdxLAMWC eNcTel/GO/1fGflqL5hA/GwEnDqxhyYvXJvdN9QVwMFNnyPTdaFhU8GiZ8RJ2J6DVVdM qWgiMVvnDVYMPWO5t4Jn997TqWnJhUwUF/gfRy4ZVbvFgD+5fhIxp5bQJBclmwgtVVb0 VRRTP6Jahu47S+CL5/fTHQ4X20uem3OyNfVovInsYsXBQFpePCWJL8CpdWodcsMJ9tQq XObQY7krMLOTq8VMHGz+7KSeme1yUPCcYsks9LPATvuZCmQ7TvhFNMkLNBVu/GQZDswr dLhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684188263; x=1686780263; 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=PptnVANtMk3Wu1vsIW9uX4GnsMt+0bdT3mCQ5mEakAI=; b=Wu/yXrKr2EphXVg5+9OtjDuOCZBXKg37iJpJl2BDWdTrgdR6qcA1EGUXs2vakN1Ena u97Nql96zJGRe+p5svrCOz4RhcpVvabbwPN49g0/5vB9dOfHwBP1mF2ZpPcZH72dFqai Oz16FgX12nx65CR5knTgp/LmAZUF2HWl+KrGcm1NInn70XnTCIKKLJznPp4JwqxxvW7o kWbTmXOYvgbYMkaUnOaM+jwwtdpVmom2ixNLDfBMGN59Fge4xvVK3laDJBNFZWv4oI+e yI/qoqI/jUN1OvB3L6K0LbAC+cwJw4byqgbBkjy69yQ9gYnFDa+pRW8/dq2EVzUAxddS xBxA== X-Gm-Message-State: AC+VfDw0p94Q/qYIo7LAVhwa6n66qsOSJqKG9bpECdPQkMDUHaFjbC// Ac/AMJdLfe+N3FcSFowioVwF4Q== X-Google-Smtp-Source: ACHHUZ7PWgCc2AxFwR3DkUoXVfBLy2wHEUU+b0LvJSTvJqo/MutxK1O02ZMF0rC3eUecPtg3M1szQg== X-Received: by 2002:a17:903:2cb:b0:1ac:73e9:de5 with SMTP id s11-20020a17090302cb00b001ac73e90de5mr32744730plk.46.1684188263251; Mon, 15 May 2023 15:04:23 -0700 (PDT) Received: from [172.24.1.9] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id i2-20020a170902c94200b001a988a71617sm14005561pla.192.2023.05.15.15.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 15:04:22 -0700 (PDT) Message-ID: <0cecbce97966383dfa607f860249267d932b6921.camel@j-davis.com> Subject: Re: Possible to create a hidden collation From: Jeff Davis To: Daniel Verite Cc: pgsql-bugs@postgresql.org Date: Mon, 15 May 2023 15:04:21 -0700 In-Reply-To: <226e3a10-41c6-4150-a31e-e806d7c0efd4@manitou-mail.org> References: <226e3a10-41c6-4150-a31e-e806d7c0efd4@manitou-mail.org> 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 Sat, 2023-05-13 at 14:28 +0200, Daniel Verite wrote: > ISTM that this behavior is not due to collencoding=3D-1, but > to the custom "en_US" collation being in the "public" schema > whereas the built-in "en_US" is in "pg_catalog". My mistake -- it looks like this is not a bug and I don't see a real problem here. Thank you for looking. > So maybe it's better to set collencoding to the db encoding as done > by the patch, but it's not clear what concrete problem it solves. I was a bit bothered by the inconsistency between libc and icu here, and I still feel like this patch is probably the right thing to do. If nothing else, right now the error messages are inconsistent: create collation test(provider=3D'libc', locale=3D'en_US.utf8'); CREATE COLLATION create collation test(provider=3D'libc', locale=3D'en_US.utf8'); ERROR: collation "test" for encoding "UTF8" already exists create collation test(provider=3D'icu', locale=3D'und'); ERROR: collation "test" already exists The patch fixes that. Not terribly important, but having a consistent catalog representation seems like a good idea. Regards, Jeff Davis