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 1o4hNu-0001ft-DU for pgsql-general@arkaria.postgresql.org; Fri, 24 Jun 2022 11:21:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4hNs-00073V-Tb for pgsql-general@arkaria.postgresql.org; Fri, 24 Jun 2022 11:21:56 +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 1o4hNs-00073L-IX for pgsql-general@lists.postgresql.org; Fri, 24 Jun 2022 11:21:56 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4hNl-0004NE-J7 for pgsql-general@lists.postgresql.org; Fri, 24 Jun 2022 11:21:55 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 046655C00B9; Fri, 24 Jun 2022 07:21:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 24 Jun 2022 07:21:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1656069708; x=1656156108; bh=q bslDn80Ehx6ZjS01MJaaSZYVU5En2vdSJMGflDSUdw=; b=nV4LKeZSQs5UumTtV Mvk34TmwXYmaauMGhy6Eiiousjm2pZW1x19S3SdEae94G6VueBa9pKIu36tiP61o YLtLpmeDQi8/D0LLrOMwvmwrIO86XDsMt7D01rGweTiYPqkNsf8oTP0rU5mciZG8 yS/Abar4dqKRFpMPrkP226DvnLPpy+d0j0TykyIp37+NACxUANwbRsjKINkyFojw jh0tClLc2pRu1aw9PeEkDxLnn7xowR4fWKDePdfvAXzkyovonJSpwaPXxCbk/qtb SrCGuZIy+ViNbqM2Isc7Sit89NUfq3rpr+vIVFRpBKgsq+p5eyaPIZ1a1eXP0akx ZSaIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefledgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Jun 2022 07:21:46 -0400 (EDT) Message-ID: <1c22da3e-1b18-39b8-cecb-26777dc683f0@enterprisedb.com> Date: Fri, 24 Jun 2022 13:21:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8) Content-Language: en-US To: Adrian Klaver , Tomas Pospisek , pgsql-general@lists.postgresql.org References: <8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com> <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> <3370e253-1928-294a-facb-e9850bfefa90@aklaver.com> <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> From: Peter Eisentraut In-Reply-To: <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.06.22 20:21, Adrian Klaver wrote: >> Not sure why that is necessary? Is seems this is low hanging fruit >> that could dealt with by the equivalent of lower('en_US.UTF-8') = >> lower('en_US.utf-8'). > > Well that was clear as mud. My point was that I don't see why the end > user should have to do this when it could be handled internally in the > pg_restore code. There are also cases where on one system the locale is spelled xx_YY.UTF8 and on another xx_YY.UTF-8. If we start adjusting for case, should we adjust for this as well? What other cases are there? So this would need a bit more research.